run_tests.bat 318 B

12345678910111213141516
  1. @setlocal
  2. @echo off
  3. cd /d %~dp0..
  4. if ["%~1"]==[""] (
  5. set "test_set="test""
  6. ) else if ["%~1"]==["core"] (
  7. set "test_set="-m not download""
  8. ) else if ["%~1"]==["download"] (
  9. set "test_set="-m "download""
  10. ) else (
  11. echo.Invalid test type "%~1". Use "core" ^| "download"
  12. exit /b 1
  13. )
  14. pytest %test_set%