Merge pull request #570 from dod-ccpo/bug-start-to-from-pf-funding-page

Allow CCPO to create TO on anyone's portfolio
This commit is contained in:
montana-mil
2019-01-23 16:37:20 -05:00
committed by GitHub
2 changed files with 7 additions and 2 deletions

View File

@@ -298,8 +298,11 @@ def test_get_for_update_information():
assert portfolio == admin_ws
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(ccpo, portfolio.id)
Portfolios.get_for_update_information(developer, portfolio.id)
def test_can_create_portfolios_with_matching_names():