Skip to content

Commit

Permalink
Test config parsing via SyncConfig for issue #673
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Dec 27, 2021
1 parent c1e4394 commit 734a44b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from plextraktsync.config import Config
from plextraktsync.factory import factory
from plextraktsync.sync import SyncConfig


def test_config_merge():
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 734a44b

Please sign in to comment.