Skip to content

Commit

Permalink
fix scripts/test.sh not testing deprecated stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Dec 31, 2024
1 parent 4fba3b7 commit ba7fe87
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@
set -e

rootDir=$(dirname $(dirname "$0"))
rootDirAbs=$(realpath $rootDir)

echo "$rootDir/tests"
cd "$rootDir/tests"
# python -m unittest *_test.py
for F in *_test.py; do
echo "$F"
python -m unittest "$F"
done
# # python -m unittest *_test.py
# for F in *_test.py; do
# echo "$F"
# python -m unittest "$F"
# done

echo "$rootDir/tests/deprecated/
cd "$rootDir/tests/deprecated/
echo "$rootDirAbs/tests/deprecated/"
cd "$rootDirAbs/tests/deprecated/"
for F in *_test.py; do
echo "$F"
python -W ignore::DeprecationWarning -m unittest "$F"
Expand Down

0 comments on commit ba7fe87

Please sign in to comment.