lint
This commit is contained in:
parent
10a3a1623b
commit
b0319c39f3
1 changed files with 16 additions and 17 deletions
|
|
@ -10,22 +10,22 @@ from ytdl_sub.prebuilt_presets.tv_show import TvShowByDatePresets
|
||||||
from ytdl_sub.script.utils.exceptions import UserThrownRuntimeError
|
from ytdl_sub.script.utils.exceptions import UserThrownRuntimeError
|
||||||
from ytdl_sub.subscriptions.subscription import Subscription
|
from ytdl_sub.subscriptions.subscription import Subscription
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_SEASON_ORDERING = "upload-year"
|
DEFAULT_SEASON_ORDERING = "upload-year"
|
||||||
DEFAULT_EPISODE_ORDERING = "upload-month-day"
|
DEFAULT_EPISODE_ORDERING = "upload-month-day"
|
||||||
|
|
||||||
VALID_ORDERING_COMBOS = [
|
VALID_ORDERING_COMBOS = [
|
||||||
# upload
|
# upload
|
||||||
("upload-year", "upload-month-day"),
|
("upload-year", "upload-month-day"),
|
||||||
("upload-year", "upload-month-day-reversed"),
|
("upload-year", "upload-month-day-reversed"),
|
||||||
("upload-year", "download-index"),
|
("upload-year", "download-index"),
|
||||||
("upload-year-month", "upload-day"),
|
("upload-year-month", "upload-day"),
|
||||||
# release
|
# release
|
||||||
("release-year", "release-month-day"),
|
("release-year", "release-month-day"),
|
||||||
("release-year", "release-month-day-reversed"),
|
("release-year", "release-month-day-reversed"),
|
||||||
("release-year", "download-index"),
|
("release-year", "download-index"),
|
||||||
("release-year-month", "release-day"),
|
("release-year-month", "release-day"),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
class TestPrebuiltTVShowPresets:
|
class TestPrebuiltTVShowPresets:
|
||||||
|
|
||||||
|
|
@ -177,7 +177,7 @@ class TestPrebuiltTVShowPresets:
|
||||||
self, config, subscription_name, output_directory, mock_download_collection_entries
|
self, config, subscription_name, output_directory, mock_download_collection_entries
|
||||||
):
|
):
|
||||||
expected_message = (
|
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", '
|
||||||
'"upload-year-month", '
|
'"upload-year-month", '
|
||||||
'"release-year", '
|
'"release-year", '
|
||||||
|
|
@ -201,7 +201,7 @@ class TestPrebuiltTVShowPresets:
|
||||||
self, config, subscription_name, output_directory, mock_download_collection_entries
|
self, config, subscription_name, output_directory, mock_download_collection_entries
|
||||||
):
|
):
|
||||||
expected_message = (
|
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-day", '
|
||||||
'"upload-month-day", '
|
'"upload-month-day", '
|
||||||
'"upload-month-day-reversed", '
|
'"upload-month-day-reversed", '
|
||||||
|
|
@ -224,7 +224,6 @@ class TestPrebuiltTVShowPresets:
|
||||||
episode_ordering="not-a-valid",
|
episode_ordering="not-a-valid",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def test_invalid_season_episode_ordering_combo(
|
def test_invalid_season_episode_ordering_combo(
|
||||||
self, config, subscription_name, output_directory, mock_download_collection_entries
|
self, config, subscription_name, output_directory, mock_download_collection_entries
|
||||||
):
|
):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue