update test script

This commit is contained in:
Dennis Mo 2023-03-30 12:54:06 -04:00
commit ddacbfd35d
2 changed files with 7 additions and 3 deletions

View file

@ -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

View file

@ -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)