From 411abb136a1d39d6bb769574e8e20d5bb4aa829c Mon Sep 17 00:00:00 2001 From: Ben Thorner Date: Thu, 24 Mar 2022 12:26:06 +0000 Subject: [PATCH] Make broadcast user fixtures realistic A broadcast service user will have the permission on creation [^1]. [^1]: https://github.com/alphagov/notifications-api/blob/b145a299351255c5755ca547629b7936cb7fcf4a/app/dao/broadcast_service_dao.py#L69 --- tests/conftest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index 69bb391a5..84bebc261 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -3604,6 +3604,7 @@ def create_active_user_create_broadcasts_permissions(with_unique_id=False): 'create_broadcasts', 'reject_broadcasts', 'cancel_broadcasts', + 'view_activity', # added automatically by API ]}, auth_type='webauthn_auth', ) @@ -3617,6 +3618,7 @@ def create_active_user_approve_broadcasts_permissions(with_unique_id=False): 'approve_broadcasts', 'reject_broadcasts', 'cancel_broadcasts', + 'view_activity', # added automatically by API ]}, auth_type='webauthn_auth', )