mirror of
https://github.com/enpaul/keyosk.git
synced 2025-09-18 21:51:57 +00:00
Add tests for account ACL model
Add string repr to account ACL model
This commit is contained in:
12
tests/test_database_account_acl.py
Normal file
12
tests/test_database_account_acl.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import json
|
||||
|
||||
import peewee
|
||||
from fixtures import demo_database
|
||||
|
||||
from keyosk import database
|
||||
|
||||
|
||||
def test_formatting(demo_database):
|
||||
for acl in database.AccountACLEntry.select():
|
||||
assert dict(acl) == json.loads(json.dumps(dict(acl)))
|
||||
assert str(acl.uuid) not in str(acl)
|
Reference in New Issue
Block a user