fix last test
This commit is contained in:
parent
5f246b419c
commit
4b03e6b452
1 changed files with 6 additions and 16 deletions
|
|
@ -236,24 +236,14 @@ class TestOutputOptions:
|
||||||
):
|
):
|
||||||
output_options_subscription_dict["output_options"]["keep_files_date_eval"] = "nope"
|
output_options_subscription_dict["output_options"]["keep_files_date_eval"] = "nope"
|
||||||
|
|
||||||
subscription = Subscription.from_dict(
|
|
||||||
config=config,
|
|
||||||
preset_name=subscription_name,
|
|
||||||
preset_dict=output_options_subscription_dict,
|
|
||||||
)
|
|
||||||
|
|
||||||
expected_error_msg = (
|
expected_error_msg = (
|
||||||
"Validation error in subscription_test.output_options.keep_files_date_eval: "
|
"Validation error in subscription_test.output_options.keep_files_date_eval: "
|
||||||
"Expected a standardized date in the form of YYYY-MM-DD, but received 'nope'"
|
"Expected a standardized date in the form of YYYY-MM-DD, but received 'nope'"
|
||||||
)
|
)
|
||||||
|
|
||||||
with (
|
with pytest.raises(ValidationException, match=re.escape(expected_error_msg)):
|
||||||
mock_download_collection_entries(
|
_ = Subscription.from_dict(
|
||||||
is_youtube_channel=False,
|
config=config,
|
||||||
num_urls=1,
|
preset_name=subscription_name,
|
||||||
is_extracted_audio=False,
|
preset_dict=output_options_subscription_dict,
|
||||||
is_dry_run=True,
|
)
|
||||||
),
|
|
||||||
pytest.raises(ValidationException, match=re.escape(expected_error_msg)),
|
|
||||||
):
|
|
||||||
subscription.download(dry_run=True)
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue