Add in route for CCPO users page and permissions to view page

This commit is contained in:
leigh-mil
2019-08-05 15:06:17 -04:00
parent 7afc24deb1
commit 41820813ed
6 changed files with 42 additions and 1 deletions

View File

@@ -120,6 +120,16 @@ def test_atst_activity_history_access(get_url_assert_status):
get_url_assert_status(rando, url, 404)
# atst.ccpo_users
def test_atst_ccpo_users_access(get_url_assert_status):
ccpo = user_with(PermissionSets.EDIT_CCPO_USERS)
rando = user_with()
url = url_for("atst.ccpo_users")
get_url_assert_status(ccpo, url, 200)
get_url_assert_status(rando, url, 404)
# applications.access_environment
def test_applications_access_environment_access(get_url_assert_status):
dev = UserFactory.create()