mirror of
https://github.com/enpaul/keyosk.git
synced 2024-11-05 06:07:06 +00:00
Ethan Paul
a302d69c7a
Fix bugs with account scope de/serializing Fix bugs with domain serializer tests Fix bugs with database account tests
14 lines
396 B
Python
14 lines
396 B
Python
# 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)
|