mirror of
https://github.com/l1ving/youtube-dl
synced 2025-01-25 01:42:51 +08:00
44 lines
1.4 KiB
PowerShell
44 lines
1.4 KiB
PowerShell
Describe 'Flake8' {
|
|
It 'Does not return any errors' {
|
|
& flake8 /Users/jhoek/GitHub/youtube-dl/youtube_dl/extractor/npo.py | Should BeNullOrEmpty
|
|
}
|
|
}
|
|
|
|
Describe 'Tests' {
|
|
It 'Should work in Python 2.6' {
|
|
& 'python2.6' '--version' 2>&1 | Should Be 'Python 2.6.9'
|
|
|
|
'', '_1', '_2' | ForEach-Object {
|
|
& 'python2.6' /Users/jhoek/GitHub/youtube-dl/test/test_download.py "TestDownload.test_NPORecents$($_)" 2>&1
|
|
$LASTEXITCODE | Should Be 0
|
|
}
|
|
}
|
|
|
|
It 'Should work in Python 2.7' {
|
|
& python '--version' 2>&1 | Should Be 'Python 2.7.13'
|
|
|
|
'', '_1', '_2' | ForEach-Object {
|
|
& python /Users/jhoek/GitHub/youtube-dl/test/test_download.py "TestDownload.test_NPORecents$($_)" 2>&1
|
|
$LASTEXITCODE | Should Be 0
|
|
}
|
|
}
|
|
|
|
It 'Should work in Python 3.5' {
|
|
& python3 '--version' | Should Be 'Python 3.5.2'
|
|
|
|
'', '_1', '_2' | ForEach-Object {
|
|
& python3 /Users/jhoek/GitHub/youtube-dl/test/test_download.py "TestDownload.test_NPORecents$($_)" 2>&1
|
|
$LASTEXITCODE | Should Be 0
|
|
}
|
|
}
|
|
|
|
It 'Should work in Python 3.6' {
|
|
& python3.6 '--version' | Should Be 'Python 3.6.1'
|
|
|
|
'', '_1', '_2' | ForEach-Object {
|
|
& 'python3.6' /Users/jhoek/GitHub/youtube-dl/test/test_download.py "TestDownload.test_NPORecents$($_)" 2>&1
|
|
$LASTEXITCODE | Should Be 0
|
|
}
|
|
}
|
|
}
|