Skip to content

Commit

Permalink
Check that constraints is a list
Browse files Browse the repository at this point in the history
  • Loading branch information
markkuleinio committed Aug 26, 2023
1 parent 48d789b commit 2e827b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def test_username(self, _):
)
def test_constraints(self, _):
permission = nb.permissions.get(1)
self.assertTrue(isinstance(permission.constraints, list))
self.assertTrue(isinstance(permission.constraints[0], dict))


Expand Down

0 comments on commit 2e827b0

Please sign in to comment.