Fixing bug where new downloads may not refresh without a next_download.

This commit is contained in:
Roland 2022-07-23 16:12:28 -06:00
parent 42a9dc4c7b
commit 3bfbaa4c22
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
3 changed files with 15 additions and 4 deletions

View file

@ -342,7 +342,6 @@ def test_channel_empty_url_doesnt_conflict(test_client, test_session, test_direc
async def test_download_channel_no_refresh(test_session, download_channel, video_download_manager):
"""A Channel cannot be downloaded until it has been refreshed."""
d = download_channel.get_download()
d.next_download = video_download_manager.calculate_next_download(d)
test_session.commit()
def check_refreshed(expected: bool):
@ -359,6 +358,7 @@ async def test_download_channel_no_refresh(test_session, download_channel, video
await video_download_manager.wait_for_all_downloads()
check_refreshed(True)
assert d.next_download
def test_channel_post_directory(test_session, test_client, test_directory):