From d69a998fde1463445567153d8a5d920cab587b5e Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Tue, 25 Oct 2022 15:35:30 -0700 Subject: [PATCH] more test cases --- tests/unit/config/test_preset.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unit/config/test_preset.py b/tests/unit/config/test_preset.py index 88b36667..42aa2ab6 100644 --- a/tests/unit/config/test_preset.py +++ b/tests/unit/config/test_preset.py @@ -229,6 +229,9 @@ class TestPresetPartialValidate: "preset_dict", [ {"youtube": {}, "generic": {}}, # multiple sources + {"generic": {}}, # no download strategy + {"generic": {"download_strategy": "fail"}}, # bad download strategy + {"generic": {"download_strategy": "collection", "bad_key": "nope"}} # bad strategy args ], ) def test_partial_validate__bad_sources(self, preset_dict): @@ -245,7 +248,7 @@ class TestPresetPartialValidate: "preset_dict", [ {"nfo_tags": {"tags": {"key-1": {"attributes": {"test": "2"}}}}}, - {"generic": {"urls": {"variables_to_set": {"name": "value"}}}}, + {"generic": {"urls": [{"variables_to_set": {"name": "value"}}]}}, ], ) def test_partial_validate__incomplete_list_item(self, preset_dict):