Skip to content

Commit

Permalink
fixup!: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rgraber committed Nov 26, 2024
1 parent 0f70aa4 commit b5a9bf7
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions kobo/apps/audit_log/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,12 +671,9 @@ def test_create_from_unexpected_anonymous_permissions(self):
self.assertEqual(log.object_id, 1)
# should create a regular 'MODIFY_USER_PERMISSIONS' log
self.assertEqual(log.action, AuditAction.MODIFY_USER_PERMISSIONS)

self.assertDictEqual(
log.metadata['permissions'],
{
ADDED: ['discover_asset', 'validate_submissions'],
REMOVED: [],
'username': 'AnonymousUser',
},
permissions = log.metadata['permissions']
self.assertEqual(permissions['username'], 'AnonymousUser')
self.assertListEqual(permissions[REMOVED], [])
self.assertListEqual(
sorted(permissions[ADDED]), ['discovery_asset', 'validate_submissions']
)

0 comments on commit b5a9bf7

Please sign in to comment.