1
0
mirror of https://github.com/enpaul/keyosk.git synced 2025-09-18 21:51:57 +00:00

Revert "Refactor datatypes into submodules"

This reverts commit 07828f0063.
This commit is contained in:
2020-02-26 22:01:25 -05:00
parent 07828f0063
commit d6265c4797
7 changed files with 27 additions and 24 deletions

View File

@@ -5,6 +5,7 @@ import toml
from keyosk import config
from keyosk import constants
from keyosk import datatypes
DEMO_CONFIG = {
@@ -38,7 +39,7 @@ def test_roundtrip():
def test_settings():
loaded = config.ConfigSerializer().load(DEMO_CONFIG)
assert loaded.storage.backend == config.StorageBackend.MARIA
assert loaded.storage.backend == datatypes.StorageBackend.MARIA
assert loaded.storage.sqlite.path == Path(DEMO_CONFIG["storage"]["sqlite"]["path"])
assert loaded.storage.sqlite.pragmas == DEMO_CONFIG["storage"]["sqlite"]["pragmas"]
for key, value in DEMO_CONFIG["storage"]["maria"].items():