mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-22 22:34:01 -07:00
update test script
This commit is contained in:
parent
932f83cb39
commit
ddacbfd35d
2 changed files with 7 additions and 3 deletions
|
@ -2,10 +2,13 @@
|
||||||
|
|
||||||
# Only run in docker container
|
# Only run in docker container
|
||||||
# Run initial test with nosetest and yourbase
|
# Run initial test with nosetest and yourbase
|
||||||
|
echo "\n---------Running initial test------------\n\n"
|
||||||
/app/devscripts/run_tests.sh
|
/app/devscripts/run_tests.sh
|
||||||
|
|
||||||
# Edit some files
|
# Edit some files
|
||||||
|
echo "\n---------Editing files------------\n\n"
|
||||||
echo "print('Hello World')" >> youtube_dl/extractor/buzzfeed.py
|
echo "print('Hello World')" >> youtube_dl/extractor/buzzfeed.py
|
||||||
|
|
||||||
# Run test again
|
# Run test again
|
||||||
|
echo "\n--------Running test again------------\n\n"
|
||||||
/app/devscripts/run_tests.sh
|
/app/devscripts/run_tests.sh
|
||||||
|
|
|
@ -7,7 +7,8 @@ import platform
|
||||||
print("davi logs", sys.version[0:3])
|
print("davi logs", sys.version[0:3])
|
||||||
print("davi logs", platform.python_implementation())
|
print("davi logs", platform.python_implementation())
|
||||||
|
|
||||||
import unittest
|
if sys.version[0:3] == '3.6':
|
||||||
import yourbase
|
import unittest
|
||||||
|
import yourbase
|
||||||
|
|
||||||
yourbase.attach(unittest)
|
yourbase.attach(unittest)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue