From c7f171f2fb03b557121d4c16293941e33cf408e9 Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Sun, 25 Jan 2026 21:58:16 -0800 Subject: [PATCH] better test --- tests/unit/plugins/test_ytdl_options.py | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/tests/unit/plugins/test_ytdl_options.py b/tests/unit/plugins/test_ytdl_options.py index ace6680a..205e1750 100644 --- a/tests/unit/plugins/test_ytdl_options.py +++ b/tests/unit/plugins/test_ytdl_options.py @@ -82,17 +82,16 @@ class TestYtdlOptions: default_config: ConfigFile, output_directory: str, ): - expected = { - "break_on_existing": True, - "js_runtimes": {"deno": {"path": "/usr/local/bin/deno"}}, - "string_path": "test", - "list_test": ["hmmm"], - } - preset_dict = { "download": "https://your.name.here", "output_options": {"output_directory": output_directory, "file_name": "will_error.mp4"}, - "ytdl_options": expected, + "ytdl_options": { + "break_on_existing": True, + "js_runtimes": {"deno": {"path": "/usr/local/bin/{dnope}"}}, + "string_path": "verify overrides: {test_string}", + "list_test": ["hmmm"], + }, + "overrides": {"test_string": "hi", "dnope": "deno"}, } sub = Subscription.from_dict( @@ -102,4 +101,11 @@ class TestYtdlOptions: ) out = sub.ytdl_options.to_native_dict(sub.overrides) + expected = { + "break_on_existing": True, + "js_runtimes": {"deno": {"path": "/usr/local/bin/deno"}}, + "string_path": "verify overrides: hi", + "list_test": ["hmmm"], + } + assert out == expected