mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-22 14:24:03 -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
|
||||
# Run initial test with nosetest and yourbase
|
||||
echo "\n---------Running initial test------------\n\n"
|
||||
/app/devscripts/run_tests.sh
|
||||
|
||||
# Edit some files
|
||||
echo "\n---------Editing files------------\n\n"
|
||||
echo "print('Hello World')" >> youtube_dl/extractor/buzzfeed.py
|
||||
|
||||
# Run test again
|
||||
echo "\n--------Running test again------------\n\n"
|
||||
/app/devscripts/run_tests.sh
|
||||
|
|
|
@ -7,7 +7,8 @@ import platform
|
|||
print("davi logs", sys.version[0:3])
|
||||
print("davi logs", platform.python_implementation())
|
||||
|
||||
import unittest
|
||||
import yourbase
|
||||
if sys.version[0:3] == '3.6':
|
||||
import unittest
|
||||
import yourbase
|
||||
|
||||
yourbase.attach(unittest)
|
||||
yourbase.attach(unittest)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue