1
0
mirror of https://github.com/enpaul/keyosk.git synced 2024-10-05 23:16:56 +00:00
keyosk/tests/test_database_account_acl.py
Ethan Paul ae86a5d21c Add tests for account ACL model
Add string repr to account ACL model
2020-02-24 23:09:05 -05:00

13 lines
286 B
Python

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)