1
0
mirror of https://github.com/enpaul/keyosk.git synced 2024-11-05 06:07:06 +00:00
keyosk/tests/test_serializers_account.py
Ethan Paul a302d69c7a Add tests for account serializer
Fix bugs with account scope de/serializing
Fix bugs with domain serializer tests
Fix bugs with database account tests
2020-03-12 22:58:33 -04:00

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)