From 1d2befa6606e35783f28ffeb11dd01cb081e1c10 Mon Sep 17 00:00:00 2001 From: Montana Date: Wed, 23 Jan 2019 14:45:29 -0500 Subject: [PATCH] Fix test --- tests/domain/test_portfolios.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/domain/test_portfolios.py b/tests/domain/test_portfolios.py index 19bd649f..8d6e0284 100644 --- a/tests/domain/test_portfolios.py +++ b/tests/domain/test_portfolios.py @@ -298,8 +298,7 @@ def test_get_for_update_information(): assert portfolio == admin_ws ccpo = UserFactory.from_atat_role("ccpo") - with pytest.raises(UnauthorizedError): - Portfolios.get_for_update_information(ccpo, portfolio.id) + assert Portfolios.get_for_update_information(ccpo, portfolio.id) def test_can_create_portfolios_with_matching_names():