yt-dlp/devscripts/run_tests.bat

18 wiersze
343 B
Batchfile
Czysty Zwykły widok Historia

@setlocal
2021-01-07 06:41:05 +00:00
@echo off
cd /d %~dp0..
2021-01-07 06:41:05 +00:00
if ["%~1"]==[""] (
set "test_set="test""
) else if ["%~1"]==["core"] (
set "test_set="-m not download""
) else if ["%~1"]==["download"] (
set "test_set="-m "download""
2021-01-07 06:41:05 +00:00
) else (
echo.Invalid test type "%~1". Use "core" ^| "download"
2021-01-07 06:41:05 +00:00
exit /b 1
)
set PYTHONWARNINGS=error
pytest %test_set%