mirror of
https://github.com/enpaul/keyosk.git
synced 2025-12-17 09:08:26 +00:00
Add tests for account serializer
Fix bugs with account scope de/serializing Fix bugs with domain serializer tests Fix bugs with database account tests
This commit is contained in:
13
tests/test_serializers_account.py
Normal file
13
tests/test_serializers_account.py
Normal file
@@ -0,0 +1,13 @@
|
||||
# pylint: disable=unused-argument,redefined-outer-name,unused-import
|
||||
from fixtures import demo_database
|
||||
|
||||
from keyosk import database
|
||||
from keyosk import serializers
|
||||
|
||||
|
||||
def test_compatibility(demo_database):
|
||||
serializer = serializers.AccountSerializer()
|
||||
|
||||
for domain in database.KeyoskAccount.select():
|
||||
dumped = serializer.dump(domain)
|
||||
assert domain == serializer.load(dumped)
|
||||
Reference in New Issue
Block a user