tests: completed for all languages
fix: parsing search videos without duration
This commit is contained in:
parent
b88faa9d05
commit
bb396968dc
20 changed files with 927 additions and 688 deletions
18
Justfile
18
Justfile
|
|
@ -15,6 +15,24 @@ testyt10:
|
|||
cargo test --all-features --test youtube; \
|
||||
done
|
||||
|
||||
testintl:
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
LANGUAGES=(
|
||||
"af" "am" "ar" "as" "az" "be" "bg" "bn" "bs" "ca" "cs" "da" "de" "el" "en" "en-GB" "en-IN"
|
||||
"es" "es-419" "es-US" "et" "eu" "fa" "fi" "fil" "fr" "fr-CA" "gl" "gu"
|
||||
"hi" "hr" "hu" "hy" "id" "is" "it" "iw" "ja" "ka" "kk" "km" "kn" "ko" "ky"
|
||||
"lo" "lt" "lv" "mk" "ml" "mn" "mr" "ms" "my" "ne" "nl" "no" "or" "pa" "pl"
|
||||
"pt" "pt-PT" "ro" "ru" "si" "sk" "sl" "sq" "sr" "sr-Latn" "sv" "sw" "ta"
|
||||
"te" "th" "tr" "uk" "ur" "uz" "vi" "zh-CN" "zh-HK" "zh-TW" "zu"
|
||||
)
|
||||
for YT_LANG in "${LANGUAGES[@]}"; do \
|
||||
echo "---TESTS FOR $YT_LANG ---"; \
|
||||
YT_LANG="$YT_LANG" cargo test --test youtube -- --skip music_artist --skip music_playlist --skip get_video_details --skip startpage; \
|
||||
echo "--- $YT_LANG COMPLETED ---"; \
|
||||
sleep 10; \
|
||||
done
|
||||
|
||||
testfiles:
|
||||
cargo run -p rustypipe-codegen -- -d . download-testfiles
|
||||
|
||||
|
|
|
|||
Reference in a new issue