From b0319c39f376ec946ca1757a2fcad65799b10161 Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Thu, 8 May 2025 22:37:47 -0700 Subject: [PATCH] lint --- .../prebuilt_presets/test_tv_show_by_date.py | 33 +++++++++---------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/tests/integration/prebuilt_presets/test_tv_show_by_date.py b/tests/integration/prebuilt_presets/test_tv_show_by_date.py index f48b069f..e886e228 100644 --- a/tests/integration/prebuilt_presets/test_tv_show_by_date.py +++ b/tests/integration/prebuilt_presets/test_tv_show_by_date.py @@ -10,22 +10,22 @@ from ytdl_sub.prebuilt_presets.tv_show import TvShowByDatePresets from ytdl_sub.script.utils.exceptions import UserThrownRuntimeError from ytdl_sub.subscriptions.subscription import Subscription - DEFAULT_SEASON_ORDERING = "upload-year" DEFAULT_EPISODE_ORDERING = "upload-month-day" -VALID_ORDERING_COMBOS = [ - # upload - ("upload-year", "upload-month-day"), - ("upload-year", "upload-month-day-reversed"), - ("upload-year", "download-index"), - ("upload-year-month", "upload-day"), - # release - ("release-year", "release-month-day"), - ("release-year", "release-month-day-reversed"), - ("release-year", "download-index"), - ("release-year-month", "release-day"), - ] +VALID_ORDERING_COMBOS = [ + # upload + ("upload-year", "upload-month-day"), + ("upload-year", "upload-month-day-reversed"), + ("upload-year", "download-index"), + ("upload-year-month", "upload-day"), + # release + ("release-year", "release-month-day"), + ("release-year", "release-month-day-reversed"), + ("release-year", "download-index"), + ("release-year-month", "release-day"), +] + class TestPrebuiltTVShowPresets: @@ -177,7 +177,7 @@ class TestPrebuiltTVShowPresets: self, config, subscription_name, output_directory, mock_download_collection_entries ): expected_message = ( - 'tv_show_by_date_season_ordering must be one of the following: ' + "tv_show_by_date_season_ordering must be one of the following: " '"upload-year", ' '"upload-year-month", ' '"release-year", ' @@ -201,7 +201,7 @@ class TestPrebuiltTVShowPresets: self, config, subscription_name, output_directory, mock_download_collection_entries ): expected_message = ( - 'tv_show_by_date_episode_ordering must be one of the following: ' + "tv_show_by_date_episode_ordering must be one of the following: " '"upload-day", ' '"upload-month-day", ' '"upload-month-day-reversed", ' @@ -224,7 +224,6 @@ class TestPrebuiltTVShowPresets: episode_ordering="not-a-valid", ) - def test_invalid_season_episode_ordering_combo( self, config, subscription_name, output_directory, mock_download_collection_entries ): @@ -257,4 +256,4 @@ class TestPrebuiltTVShowPresets: tv_show_preset="Kodi TV Show by Date", season_ordering=season_ordering, episode_ordering=episode_ordering, - ) \ No newline at end of file + )