lint
This commit is contained in:
parent
80a0df65c7
commit
808128659e
12 changed files with 14 additions and 30 deletions
|
|
@ -2,10 +2,12 @@ from typing import Optional
|
|||
|
||||
import pytest
|
||||
from conftest import mock_run_from_cli
|
||||
from resources import DISABLE_YOUTUBE_TESTS
|
||||
|
||||
from ytdl_sub.utils.file_handler import FileMetadata
|
||||
|
||||
|
||||
@pytest.mark.skipif(DISABLE_YOUTUBE_TESTS, reason="YouTube tests cannot run in GH")
|
||||
class TestView:
|
||||
@pytest.mark.parametrize("split_chapters", [True, False])
|
||||
def test_view_from_cli(
|
||||
|
|
@ -46,9 +46,8 @@ def youtube_release_preset_dict(output_directory):
|
|||
},
|
||||
}
|
||||
|
||||
@pytest.mark.skipif(
|
||||
DISABLE_YOUTUBE_TESTS, reason="YouTube tests cannot run in GH"
|
||||
)
|
||||
|
||||
@pytest.mark.skipif(DISABLE_YOUTUBE_TESTS, reason="YouTube tests cannot run in GH")
|
||||
class TestAudioExtract:
|
||||
@pytest.mark.parametrize("dry_run", [False])
|
||||
def test_audio_extract_single_song(
|
||||
|
|
|
|||
|
|
@ -54,9 +54,7 @@ def chapters_from_comments_preset_dict(sponsorblock_and_subs_preset_dict: Dict)
|
|||
return sponsorblock_and_subs_preset_dict
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
DISABLE_YOUTUBE_TESTS, reason="YouTube tests cannot run in GH"
|
||||
)
|
||||
@pytest.mark.skipif(DISABLE_YOUTUBE_TESTS, reason="YouTube tests cannot run in GH")
|
||||
class TestChapters:
|
||||
@pytest.mark.parametrize("dry_run", [True, False])
|
||||
def test_chapters_sponsorblock_and_removal_with_subs(
|
||||
|
|
|
|||
|
|
@ -39,9 +39,7 @@ def rolling_recent_channel_preset_dict(recent_preset_dict):
|
|||
)
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
DISABLE_YOUTUBE_TESTS, reason="YouTube tests cannot run in GH"
|
||||
)
|
||||
@pytest.mark.skipif(DISABLE_YOUTUBE_TESTS, reason="YouTube tests cannot run in GH")
|
||||
class TestDateRange:
|
||||
@pytest.mark.parametrize("dry_run", [True, False])
|
||||
@pytest.mark.parametrize("date_range_breaks", [True, False])
|
||||
|
|
|
|||
|
|
@ -20,9 +20,7 @@ def preset_dict(output_directory):
|
|||
}
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
DISABLE_YOUTUBE_TESTS, reason="YouTube tests cannot run in GH"
|
||||
)
|
||||
@pytest.mark.skipif(DISABLE_YOUTUBE_TESTS, reason="YouTube tests cannot run in GH")
|
||||
class TestFileConvert:
|
||||
@pytest.mark.parametrize("dry_run", [True, False])
|
||||
def test_file_convert(
|
||||
|
|
|
|||
|
|
@ -46,9 +46,7 @@ def livestream_preset_dict(output_directory):
|
|||
}
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
DISABLE_YOUTUBE_TESTS, reason="YouTube tests cannot run in GH"
|
||||
)
|
||||
@pytest.mark.skipif(DISABLE_YOUTUBE_TESTS, reason="YouTube tests cannot run in GH")
|
||||
class TestFileConvert:
|
||||
def test_livestreams_download_filtered(
|
||||
self,
|
||||
|
|
|
|||
|
|
@ -58,9 +58,7 @@ def yt_album_as_chapters_with_regex_preset_dict(yt_album_as_chapters_preset_dict
|
|||
return yt_album_as_chapters_preset_dict
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
DISABLE_YOUTUBE_TESTS, reason="YouTube tests cannot run in GH"
|
||||
)
|
||||
@pytest.mark.skipif(DISABLE_YOUTUBE_TESTS, reason="YouTube tests cannot run in GH")
|
||||
class TestSplitByChapters:
|
||||
@pytest.mark.parametrize("dry_run", [True, False])
|
||||
def test_video_with_chapters(
|
||||
|
|
|
|||
|
|
@ -32,9 +32,7 @@ def test_single_video_subs_embed_and_file_preset_dict(single_video_subs_embed_pr
|
|||
return single_video_subs_embed_preset_dict
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
DISABLE_YOUTUBE_TESTS, reason="YouTube tests cannot run in GH"
|
||||
)
|
||||
@pytest.mark.skipif(DISABLE_YOUTUBE_TESTS, reason="YouTube tests cannot run in GH")
|
||||
class TestSubtitles:
|
||||
def test_subtitle_lang_variable_partial_validates(self, default_config):
|
||||
default_config_dict = default_config.as_dict()
|
||||
|
|
|
|||
|
|
@ -51,9 +51,7 @@ def tv_show_collection_bilateral_dict(output_directory):
|
|||
}
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
DISABLE_YOUTUBE_TESTS, reason="YouTube tests cannot run in GH"
|
||||
)
|
||||
@pytest.mark.skipif(DISABLE_YOUTUBE_TESTS, reason="YouTube tests cannot run in GH")
|
||||
class TestBilateral:
|
||||
|
||||
def test_tv_show_by_date_downloads_bilateral(
|
||||
|
|
|
|||
|
|
@ -43,9 +43,7 @@ def channel_preset_dict(output_directory):
|
|||
}
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
DISABLE_YOUTUBE_TESTS, reason="YouTube tests cannot run in GH"
|
||||
)
|
||||
@pytest.mark.skipif(DISABLE_YOUTUBE_TESTS, reason="YouTube tests cannot run in GH")
|
||||
class TestChannel:
|
||||
"""
|
||||
Downloads my old minecraft youtube channel. Ensure the above files exist and have the
|
||||
|
|
|
|||
|
|
@ -29,9 +29,8 @@ def single_video_preset_dict(output_directory):
|
|||
},
|
||||
}
|
||||
|
||||
@pytest.mark.skipif(
|
||||
DISABLE_YOUTUBE_TESTS, reason="YouTube tests cannot run in GH"
|
||||
)
|
||||
|
||||
@pytest.mark.skipif(DISABLE_YOUTUBE_TESTS, reason="YouTube tests cannot run in GH")
|
||||
class TestYoutubeVideo:
|
||||
@pytest.mark.parametrize("dry_run", [True, False])
|
||||
def test_single_video_download(
|
||||
|
|
|
|||
Loading…
Reference in a new issue