fix out of range test
This commit is contained in:
parent
287eb8ac81
commit
d37d5e173d
1 changed files with 15 additions and 13 deletions
|
|
@ -102,19 +102,21 @@ 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)
|
||||||
transaction_log = recent_channel_no_vids_in_range_subscription.download(dry_run=dry_run)
|
|
||||||
assert_transaction_log_matches(
|
# Run again, ensure no downloads
|
||||||
output_directory=output_directory,
|
transaction_log = recent_channel_no_vids_in_range_subscription.download(dry_run=dry_run)
|
||||||
transaction_log=transaction_log,
|
assert_transaction_log_matches(
|
||||||
transaction_log_summary_file_name="plugins/date_range/no_downloads.txt",
|
output_directory=output_directory,
|
||||||
)
|
transaction_log=transaction_log,
|
||||||
assert_expected_downloads(
|
transaction_log_summary_file_name="plugins/date_range/no_downloads.txt",
|
||||||
output_directory=output_directory,
|
)
|
||||||
dry_run=dry_run,
|
assert_expected_downloads(
|
||||||
expected_download_summary_file_name="plugins/date_range/no_downloads.json",
|
output_directory=output_directory,
|
||||||
)
|
dry_run=False,
|
||||||
|
expected_download_summary_file_name="plugins/date_range/no_downloads.json",
|
||||||
|
)
|
||||||
|
|
||||||
@pytest.mark.parametrize("dry_run", [True, False])
|
@pytest.mark.parametrize("dry_run", [True, False])
|
||||||
def test_rolling_recent_channel_download(
|
def test_rolling_recent_channel_download(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue