Files
nao20010128nao ed3afd9567 Merge branch 'master' of https://github.com/yt-dlp/yt-dlp into ytdlp
* 'master' of https://github.com/yt-dlp/yt-dlp:
  [test] Add Python 3.10 (#480)
  [test] Use `pytest` instead of `nosetests` (#482)
  [cookies] Handle errors when importing `keyring` Workaround for #551
  [cookies] Handle `sqlite` `ImportError` gracefully (#554)
  [downloader] Pass same status object to all `progress_hooks`
  [youtube] Fix subtitles only being extracted from the first client Closes #547
  Try all clients even if age-gated Reverts: https://github.com/yt-dlp/yt-dlp/pull/536/commits/892e31ce7c5f66418fee26a24eda30e5fe79d901
  [youtube] Disable `get_video_info` age-gate workaround This now seems to be completely dead Closes: #553
  [youtube] Fix age-gated videos for API clients when cookies are supplied (#545)
2021-07-24 01:15:35 +09:00

16 lines
318 B
Bash
Executable File

#!/bin/sh
if [ -z "$1" ]; then
test_set='test'
elif [ "$1" = 'core' ]; then
test_set='not download'
elif [ "$1" = 'download' ]; then
test_set='download'
else
echo 'Invalid test type "'"$1"'". Use "core" | "download"'
exit 1
fi
echo python3 -m pytest -k $test_set
python3 -m pytest -k "$test_set"