linting + fix tests

This commit is contained in:
zandercymatics 2024-09-26 11:36:33 -06:00
parent 237d066233
commit e1ed5a5ed5
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
12 changed files with 47 additions and 67 deletions

View file

@ -50,7 +50,9 @@ class TestGroups(TestCase):
"change_user",
"delete_userdomainrole",
"view_userdomainrole",
"view_userportfoliopermission",
"add_userportfoliopermission",
"change_userportfoliopermission",
"delete_userportfoliopermission",
"add_verifiedbystaff",
"change_verifiedbystaff",
"delete_verifiedbystaff",
@ -58,6 +60,7 @@ class TestGroups(TestCase):
# Get the codenames of actual permissions associated with the group
actual_permissions = [p.codename for p in cisa_analysts_group.permissions.all()]
self.maxDiff = None
# Assert that the actual permissions match the expected permissions
self.assertListEqual(actual_permissions, expected_permissions)