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

Refactor datatypes into submodules

Gonna do some composition up in here
Add py38 tox env
This commit is contained in:
2020-02-25 22:28:45 -05:00
parent 227f1e7c18
commit 07828f0063
7 changed files with 24 additions and 27 deletions

View File

@@ -5,7 +5,6 @@ import toml
from keyosk import config
from keyosk import constants
from keyosk import datatypes
DEMO_CONFIG = {
@@ -39,7 +38,7 @@ def test_roundtrip():
def test_settings():
loaded = config.ConfigSerializer().load(DEMO_CONFIG)
assert loaded.storage.backend == datatypes.StorageBackend.MARIA
assert loaded.storage.backend == config.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():