Add to test

This commit is contained in:
Montana 2019-01-23 15:47:00 -05:00
parent 1d2befa660
commit ef85340baa

View File

@ -300,6 +300,10 @@ def test_get_for_update_information():
ccpo = UserFactory.from_atat_role("ccpo") ccpo = UserFactory.from_atat_role("ccpo")
assert Portfolios.get_for_update_information(ccpo, portfolio.id) 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(): def test_can_create_portfolios_with_matching_names():
portfolio_name = "Great Portfolio" portfolio_name = "Great Portfolio"