File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33import pytest
44from conftest import mock_run_from_cli
5- from resources import DISABLE_YOUTUBE_TESTS
5+ from resources import DISABLE_E2E_TESTS
66
77from ytdl_sub .utils .file_handler import FileMetadata
88
99
10- @pytest .mark .skipif (DISABLE_YOUTUBE_TESTS , reason = "YouTube tests cannot run in GH" )
10+ @pytest .mark .skipif (DISABLE_E2E_TESTS , reason = "YouTube tests cannot run in GH" )
1111class TestView :
1212 @pytest .mark .parametrize ("split_chapters" , [True , False ])
1313 def test_view_from_cli (
Original file line number Diff line number Diff line change 11import pytest
22from expected_download import assert_expected_downloads
33from expected_transaction_log import assert_transaction_log_matches
4- from resources import DISABLE_YOUTUBE_TESTS
4+ from resources import DISABLE_E2E_TESTS
55
66from ytdl_sub .subscriptions .subscription import Subscription
77
@@ -47,7 +47,7 @@ def youtube_release_preset_dict(output_directory):
4747 }
4848
4949
50- @pytest .mark .skipif (DISABLE_YOUTUBE_TESTS , reason = "YouTube tests cannot run in GH" )
50+ @pytest .mark .skipif (DISABLE_E2E_TESTS , reason = "YouTube tests cannot run in GH" )
5151class TestAudioExtract :
5252 @pytest .mark .parametrize ("dry_run" , [False ])
5353 def test_audio_extract_single_song (
Original file line number Diff line number Diff line change 33import pytest
44from expected_download import assert_expected_downloads
55from expected_transaction_log import assert_transaction_log_matches
6- from resources import DISABLE_YOUTUBE_TESTS
6+ from resources import DISABLE_E2E_TESTS
77
88from ytdl_sub .subscriptions .subscription import Subscription
99
@@ -54,7 +54,7 @@ def chapters_from_comments_preset_dict(sponsorblock_and_subs_preset_dict: Dict)
5454 return sponsorblock_and_subs_preset_dict
5555
5656
57- @pytest .mark .skipif (DISABLE_YOUTUBE_TESTS , reason = "YouTube tests cannot run in GH" )
57+ @pytest .mark .skipif (DISABLE_E2E_TESTS , reason = "YouTube tests cannot run in GH" )
5858class TestChapters :
5959 @pytest .mark .parametrize ("dry_run" , [True , False ])
6060 def test_chapters_sponsorblock_and_removal_with_subs (
Original file line number Diff line number Diff line change 55from conftest import assert_logs
66from expected_download import assert_expected_downloads
77from expected_transaction_log import assert_transaction_log_matches
8- from resources import DISABLE_YOUTUBE_TESTS
8+ from resources import DISABLE_E2E_TESTS
99
1010from ytdl_sub .downloaders .ytdlp import YTDLP
1111from ytdl_sub .subscriptions .subscription import Subscription
@@ -39,7 +39,7 @@ def rolling_recent_channel_preset_dict(recent_preset_dict):
3939 )
4040
4141
42- @pytest .mark .skipif (DISABLE_YOUTUBE_TESTS , reason = "YouTube tests cannot run in GH" )
42+ @pytest .mark .skipif (DISABLE_E2E_TESTS , reason = "YouTube tests cannot run in GH" )
4343class TestDateRange :
4444 @pytest .mark .parametrize ("dry_run" , [True , False ])
4545 @pytest .mark .parametrize ("date_range_breaks" , [True , False ])
Original file line number Diff line number Diff line change 11import pytest
22from expected_download import assert_expected_downloads
33from expected_transaction_log import assert_transaction_log_matches
4- from resources import DISABLE_YOUTUBE_TESTS
4+ from resources import DISABLE_E2E_TESTS
55
66from ytdl_sub .subscriptions .subscription import Subscription
77
@@ -20,7 +20,7 @@ def preset_dict(output_directory):
2020 }
2121
2222
23- @pytest .mark .skipif (DISABLE_YOUTUBE_TESTS , reason = "YouTube tests cannot run in GH" )
23+ @pytest .mark .skipif (DISABLE_E2E_TESTS , reason = "YouTube tests cannot run in GH" )
2424class TestFileConvert :
2525 @pytest .mark .parametrize ("dry_run" , [True , False ])
2626 def test_file_convert (
Original file line number Diff line number Diff line change 11import pytest
22from expected_download import assert_expected_downloads
33from expected_transaction_log import assert_transaction_log_matches
4- from resources import DISABLE_YOUTUBE_TESTS
4+ from resources import DISABLE_E2E_TESTS
55
66from ytdl_sub .subscriptions .subscription import Subscription
77
@@ -46,7 +46,7 @@ def livestream_preset_dict(output_directory):
4646 }
4747
4848
49- @pytest .mark .skipif (DISABLE_YOUTUBE_TESTS , reason = "YouTube tests cannot run in GH" )
49+ @pytest .mark .skipif (DISABLE_E2E_TESTS , reason = "YouTube tests cannot run in GH" )
5050class TestFileConvert :
5151 def test_livestreams_download_filtered (
5252 self ,
Original file line number Diff line number Diff line change 44import pytest
55from expected_download import assert_expected_downloads
66from expected_transaction_log import assert_transaction_log_matches
7- from resources import DISABLE_YOUTUBE_TESTS
7+ from resources import DISABLE_E2E_TESTS
88
99from ytdl_sub .subscriptions .subscription import Subscription
1010from ytdl_sub .utils .exceptions import ValidationException
@@ -58,7 +58,7 @@ def yt_album_as_chapters_with_regex_preset_dict(yt_album_as_chapters_preset_dict
5858 return yt_album_as_chapters_preset_dict
5959
6060
61- @pytest .mark .skipif (DISABLE_YOUTUBE_TESTS , reason = "YouTube tests cannot run in GH" )
61+ @pytest .mark .skipif (DISABLE_E2E_TESTS , reason = "YouTube tests cannot run in GH" )
6262class TestSplitByChapters :
6363 @pytest .mark .parametrize ("dry_run" , [True , False ])
6464 def test_video_with_chapters (
Original file line number Diff line number Diff line change 11import pytest
22from expected_download import assert_expected_downloads
33from expected_transaction_log import assert_transaction_log_matches
4- from resources import DISABLE_YOUTUBE_TESTS
4+ from resources import DISABLE_E2E_TESTS
55
66from ytdl_sub .config .config_file import ConfigFile
77from ytdl_sub .subscriptions .subscription import Subscription
@@ -32,7 +32,7 @@ def test_single_video_subs_embed_and_file_preset_dict(single_video_subs_embed_pr
3232 return single_video_subs_embed_preset_dict
3333
3434
35- @pytest .mark .skipif (DISABLE_YOUTUBE_TESTS , reason = "YouTube tests cannot run in GH" )
35+ @pytest .mark .skipif (DISABLE_E2E_TESTS , reason = "YouTube tests cannot run in GH" )
3636class TestSubtitles :
3737 def test_subtitle_lang_variable_partial_validates (self , default_config ):
3838 default_config_dict = default_config .as_dict ()
Original file line number Diff line number Diff line change 22
33import pytest
44from expected_transaction_log import assert_transaction_log_matches
5- from resources import DISABLE_YOUTUBE_TESTS
5+ from resources import DISABLE_E2E_TESTS
66
77from ytdl_sub .config .config_file import ConfigFile
88from ytdl_sub .subscriptions .subscription import Subscription
@@ -51,7 +51,7 @@ def tv_show_collection_bilateral_dict(output_directory):
5151 }
5252
5353
54- @pytest .mark .skipif (DISABLE_YOUTUBE_TESTS , reason = "YouTube tests cannot run in GH" )
54+ @pytest .mark .skipif (DISABLE_E2E_TESTS , reason = "YouTube tests cannot run in GH" )
5555class TestBilateral :
5656 def test_tv_show_by_date_downloads_bilateral (
5757 self ,
Original file line number Diff line number Diff line change 44from conftest import assert_logs
55from expected_download import assert_expected_downloads
66from expected_transaction_log import assert_transaction_log_matches
7+ from resources import DISABLE_E2E_TESTS
78
89from ytdl_sub .downloaders .ytdlp import YTDLP
910from ytdl_sub .subscriptions .subscription import Subscription
@@ -23,6 +24,7 @@ def subscription_dict(output_directory):
2324 }
2425
2526
27+ @pytest .mark .skipif (DISABLE_E2E_TESTS , reason = "Soundcloud tests cannot run in GH" )
2628class TestSoundcloudDiscography :
2729 """
2830 Downloads my (bad) SC recordings I made. Ensure the above files exist and have the
You can’t perform that action at this time.
0 commit comments