Test config parsing via SyncConfig for issue
from plextraktsync.config import Config
from plextraktsync.factory import factory
+from plextraktsync.sync import SyncConfig
def test_config_merge():
@@ -33,6 +34,15 @@ def test_config_merge_real():
assert config["sync"]["plex_to_trakt"]["collection"] is False
+def test_sync_config():
+ config = Config()
+ from tests.conftest import MOCK_DATA_DIR
+ config.config_file = join(MOCK_DATA_DIR, "673-config.json")
+
+ sync_config = SyncConfig(config)
+ assert sync_config.plex_to_trakt["collection"] is False
+
+
def test_config():
config = factory.config()
