mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-26 04:28:39 +02:00
unit tests, add cisa_analyst permission in the cisa_analysts_group for better grannular hasPerm testing in admin.py
This commit is contained in:
parent
cd14eb2584
commit
155baa0200
11 changed files with 142 additions and 64 deletions
|
@ -128,7 +128,7 @@ class UserFixture:
|
|||
"email": "nicolle.leclair@ecstech.com",
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
def load_users(cls, users, group_name):
|
||||
logger.info(f"Going to load {len(users)} users in group {group_name}")
|
||||
for user_data in users:
|
||||
|
@ -153,4 +153,3 @@ class UserFixture:
|
|||
def load(cls):
|
||||
cls.load_users(cls, cls.ADMINS, "full_access_group")
|
||||
cls.load_users(cls, cls.STAFF, "cisa_analysts_group")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue