From ef85340baaa9d3d5193c150a15664daf7848e1fd Mon Sep 17 00:00:00 2001 From: Montana Date: Wed, 23 Jan 2019 15:47:00 -0500 Subject: [PATCH] Add to test --- tests/domain/test_portfolios.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/domain/test_portfolios.py b/tests/domain/test_portfolios.py index 8d6e0284..6c1da209 100644 --- a/tests/domain/test_portfolios.py +++ b/tests/domain/test_portfolios.py @@ -300,6 +300,10 @@ def test_get_for_update_information(): ccpo = UserFactory.from_atat_role("ccpo") assert Portfolios.get_for_update_information(ccpo, portfolio.id) + developer = UserFactory.from_atat_role("developer") + with pytest.raises(UnauthorizedError): + Portfolios.get_for_update_information(developer, portfolio.id) + def test_can_create_portfolios_with_matching_names(): portfolio_name = "Great Portfolio"