ci/tests: simplify tests and workflows

This commit is contained in:
dark_zoul committed 2026-05-16 17:17:17 +03:00
1 parent 17c2df3640
commit 8550203411
5 files changed
+16 -11

No files matched your search

+3 -1
View File
@@ -9,12 +9,14 @@ from src.app.core.sync.executor import ActionExecutor
from src.app.core.sync.service import SyncService
PLAYLIST_URL = "https://www.youtube.com/playlist?list=PLUmRr21IDW9WCW87FnbWAbIwwZHbf-lAz"
PLAYLIST_URL = os.getenv("TEST_PLAYLIST_URL")
def _require_integration():
if not os.getenv("INTEGRATION_TEST"):
pytest.skip("Set INTEGRATION_TEST=1 to enable real download tests")
if not PLAYLIST_URL:
pytest.skip("Set TEST_PLAYLIST_URL to enable real download tests")
@pytest.mark.integration
+3 -1
View File
@@ -9,12 +9,14 @@ from src.app.core.sync.executor import ActionExecutor
from src.app.core.sync.service import SyncService
PLAYLIST_URL = "https://www.youtube.com/playlist?list=PLUmRr21IDW9WCW87FnbWAbIwwZHbf-lAz"
PLAYLIST_URL = os.getenv("TEST_PLAYLIST_URL")
def _require_integration():
if not os.getenv("INTEGRATION_TEST"):
pytest.skip("Set INTEGRATION_TEST=1 to enable real download tests")
if not PLAYLIST_URL:
pytest.skip("Set TEST_PLAYLIST_URL to enable real download tests")
@pytest.mark.integration
+3 -2
View File
@@ -9,12 +9,14 @@ from src.app.core.sync.executor import ActionExecutor
from src.app.core.sync.service import SyncService
PLAYLIST_URL = "https://www.youtube.com/playlist?list=PLUmRr21IDW9WCW87FnbWAbIwwZHbf-lAz"
PLAYLIST_URL = os.getenv("TEST_PLAYLIST_URL")
def _require_integration():
if not os.getenv("INTEGRATION_TEST"):
pytest.skip("Set INTEGRATION_TEST=1 to enable real download tests")
if not PLAYLIST_URL:
pytest.skip("Set TEST_PLAYLIST_URL to enable real download tests")
@pytest.mark.integration
@@ -55,4 +57,3 @@ def test_integration_download_video(tmp_path):
video_dir = save_path / "video"
assert video_dir.exists()
assert any(p.suffix.lower() == ".mp4" for p in video_dir.glob("*.mp4"))