more backwards compatibility testing
This commit is contained in:
parent
fb970de164
commit
b9f3fb8fce
1 changed files with 55 additions and 0 deletions
|
|
@ -24,3 +24,58 @@ class TestTvShowByDatePreset:
|
|||
"overrides": {"tv_show_directory": "abc", "s01_url": "test"},
|
||||
},
|
||||
)
|
||||
|
||||
def test_backward_compatibility_single(self, default_config):
|
||||
a = Subscription.from_dict(
|
||||
config=default_config,
|
||||
preset_name="a",
|
||||
preset_dict={
|
||||
"preset": "Jellyfin TV Show by Date",
|
||||
"overrides": {"tv_show_directory": "abc", "url": "test_1"},
|
||||
},
|
||||
)
|
||||
|
||||
b = Subscription.from_dict(
|
||||
config=default_config,
|
||||
preset_name="a",
|
||||
preset_dict={
|
||||
"preset": "Jellyfin TV Show by Date",
|
||||
"overrides": {"tv_show_directory": "abc", "subscription_value": "test_1"},
|
||||
},
|
||||
)
|
||||
|
||||
assert a.resolved_yaml() == b.resolved_yaml()
|
||||
|
||||
def test_backward_compatibility_multi(self, default_config):
|
||||
a = Subscription.from_dict(
|
||||
config=default_config,
|
||||
preset_name="a",
|
||||
preset_dict={
|
||||
"preset": "Jellyfin TV Show by Date",
|
||||
"overrides": {"tv_show_directory": "abc", "url": "test_1", "url2": "test_2"},
|
||||
},
|
||||
)
|
||||
|
||||
b = Subscription.from_dict(
|
||||
config=default_config,
|
||||
preset_name="a",
|
||||
preset_dict={
|
||||
"preset": "Jellyfin TV Show by Date",
|
||||
"overrides": {
|
||||
"tv_show_directory": "abc",
|
||||
"subscription_array": ["test_1", "test_2"],
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
c = Subscription.from_dict(
|
||||
config=default_config,
|
||||
preset_name="a",
|
||||
preset_dict={
|
||||
"preset": "Jellyfin TV Show by Date",
|
||||
"overrides": {"tv_show_directory": "abc", "urls": ["test_1", "test_2"]},
|
||||
},
|
||||
)
|
||||
|
||||
assert a.resolved_yaml() == b.resolved_yaml()
|
||||
assert a.resolved_yaml() == c.resolved_yaml()
|
||||
|
|
|
|||
Loading…
Reference in a new issue