]> jfr.im git - yt-dlp.git/blame - devscripts/run_tests.bat
[extractor] Common function `_match_valid_url`
[yt-dlp.git] / devscripts / run_tests.bat
CommitLineData
060ac762 1@setlocal
c76eb41b 2@echo off
060ac762 3cd /d %~dp0..
c76eb41b 4
060ac762 5if ["%~1"]==[""] (
6 set "test_set="
7) else if ["%~1"]==["core"] (
8 set "test_set=-k "not download""
9) else if ["%~1"]==["download"] (
10 set "test_set=-k download"
c76eb41b 11) else (
060ac762 12 echo.Invalid test type "%~1". Use "core" ^| "download"
c76eb41b 13 exit /b 1
14)
15
060ac762 16pytest %test_set%