From 87ba2c46dbc14b113198dffdf43ab830de747204 Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Sat, 30 Mar 2024 16:52:17 -0700 Subject: [PATCH] update config file test --- src/ytdl_sub/downloaders/url/validators.py | 13 ------------- tests/unit/config/test_config_file.py | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/ytdl_sub/downloaders/url/validators.py b/src/ytdl_sub/downloaders/url/validators.py index a324015b..61d794dd 100644 --- a/src/ytdl_sub/downloaders/url/validators.py +++ b/src/ytdl_sub/downloaders/url/validators.py @@ -51,7 +51,6 @@ class UrlValidator(StrictDictValidator): "source_thumbnails", "playlist_thumbnails", "download_reverse", - "extract_bilaterally", "ytdl_options", "include_sibling_metadata", } @@ -83,9 +82,6 @@ class UrlValidator(StrictDictValidator): self._download_reverse = self._validate_key( key="download_reverse", validator=OverridesBooleanFormatterValidator, default="True" ) - self._extract_bilaterally = self._validate_key( - key="extract_bilaterally", validator=OverridesBooleanFormatterValidator, default="False" - ) self._ytdl_options = self._validate_key( key="ytdl_options", validator=YTDLOptions, default={} ) @@ -165,15 +161,6 @@ class UrlValidator(StrictDictValidator): """ return self._download_reverse - @property - def extract_bilaterally(self) -> OverridesBooleanFormatterValidator: - """ - Optional. If True, will extract metadata from both the beginning and end of the playlist. - This is for incrementally fetching new entries that may be added at either the beginning - or the end of a playlist. Defaults to False. - """ - return self._extract_bilaterally - @property def ytdl_options(self) -> YTDLOptions: """ diff --git a/tests/unit/config/test_config_file.py b/tests/unit/config/test_config_file.py index 74ec03d2..352ead2d 100644 --- a/tests/unit/config/test_config_file.py +++ b/tests/unit/config/test_config_file.py @@ -74,7 +74,7 @@ class TestConfigFilePartiallyValidatesPresets: expected_error_message="Validation error in partial_preset.download.1: " "'partial_preset.download.1' contains the field 'bad_key' which is not allowed. " "Allowed fields: download_reverse, include_sibling_metadata, playlist_thumbnails, " - "source_thumbnails, url, variables", + "source_thumbnails, url, variables, ytdl_options", ) @pytest.mark.parametrize(