mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-26 01:46:18 -05:00
Adding config fixture to download manager fixture to avoid calling both in every test.
This commit is contained in:
parent
f14a230bc6
commit
ff379185fe
5 changed files with 126 additions and 140 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue