fix out of range test

This commit is contained in:
Jesse Bannon 2022-09-08 11:49:57 -07:00
parent 287eb8ac81
commit d37d5e173d

View file

@ -102,8 +102,10 @@ class TestDateRange:
preset_dict=recent_preset_dict, preset_dict=recent_preset_dict,
) )
# Run twice, ensure nothing changes between runsyoutube # run once to initialize all output directory files
for _ in range(2): _ = recent_channel_no_vids_in_range_subscription.download(dry_run=False)
# Run again, ensure no downloads
transaction_log = recent_channel_no_vids_in_range_subscription.download(dry_run=dry_run) transaction_log = recent_channel_no_vids_in_range_subscription.download(dry_run=dry_run)
assert_transaction_log_matches( assert_transaction_log_matches(
output_directory=output_directory, output_directory=output_directory,
@ -112,7 +114,7 @@ class TestDateRange:
) )
assert_expected_downloads( assert_expected_downloads(
output_directory=output_directory, output_directory=output_directory,
dry_run=dry_run, dry_run=False,
expected_download_summary_file_name="plugins/date_range/no_downloads.json", expected_download_summary_file_name="plugins/date_range/no_downloads.json",
) )