Test config merging for issue
MODIFY
tests/test_config.py
tests/test_config.py
#!/usr/bin/env python3 -m pytest
from os import environ
+from os.path import join
+from plextraktsync.config import Config
from plextraktsync.factory import factory
@@ -23,6 +25,14 @@ def test_config_merge():
assert config["root"]["key2"] == "value2"
+def test_config_merge_real():
+ config = Config()
+ from tests.conftest import MOCK_DATA_DIR
+ config.config_file = join(MOCK_DATA_DIR, "673-config.json")
+
+ assert config["sync"]["plex_to_trakt"]["collection"] is False
+
+
def test_config():
config = factory.config()

Test config merging for issue #673