Adding config fixture to download manager fixture to avoid calling both in every test.

This commit is contained in:
Roland 2022-06-08 12:21:59 -06:00
parent f14a230bc6
commit ff379185fe
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
5 changed files with 126 additions and 140 deletions

View file

@ -337,9 +337,7 @@ def test_channel_empty_url_doesnt_conflict(test_client, test_session, test_direc
def test_download_channel_no_refresh(test_session, download_channel, video_download_manager):
"""
A Channel cannot be downloaded until it has been refreshed.
"""
"""A Channel cannot be downloaded until it has been refreshed."""
def check_refreshed(expected: bool):
channel = test_session.query(Channel).one()

View file

@ -177,7 +177,8 @@ def test_video_download_no_channel(test_session, video_download_manager, video_f
def test_download_channel(test_session, simple_channel, video_download_manager, video_file,
mock_video_extract_info, mock_video_prepare_filename, mock_video_process_runner):
mock_video_extract_info, mock_video_prepare_filename,
mock_video_process_runner):
"""Downloading (updating the catalog of) a Channel creates download records for all of it's missing videos."""
url = 'https://www.youtube.com/c/LearningSelfReliance/videos'