]> jfr.im git - yt-dlp.git/blob - devscripts/run_tests.bat
[devscripts/make_changelog] Skip reverted commits
[yt-dlp.git] / devscripts / run_tests.bat
1 @setlocal
2 @echo off
3 cd /d %~dp0..
4
5 if ["%~1"]==[""] (
6 set "test_set="test""
7 ) else if ["%~1"]==["core"] (
8 set "test_set="-m not download""
9 ) else if ["%~1"]==["download"] (
10 set "test_set="-m "download""
11 ) else (
12 echo.Invalid test type "%~1". Use "core" ^| "download"
13 exit /b 1
14 )
15
16 set PYTHONWARNINGS=error
17 pytest %test_set%