| 1 |
#!/bin/bash |
| 2 |
set -e |
| 3 |
|
| 4 |
# Test for all supported python3 versions so we find out if there are any |
| 5 |
# issues with a new python3 version before it is the default version. |
| 6 |
|
| 7 |
cp -a dateparser_scripts tests $AUTOPKGTEST_TMP |
| 8 |
# TODO: Find a way to use the installed data |
| 9 |
ln -s /usr/lib/python3/dist-packages/dateparser_data $AUTOPKGTEST_TMP |
| 10 |
|
| 11 |
cd $AUTOPKGTEST_TMP |
| 12 |
rm -vf ./tests/test_dateparser_data_integrity.py |
| 13 |
|
| 14 |
for py3vers in $(py3versions -s); do |
| 15 |
echo "Testing with $py3vers:" |
| 16 |
TZ=UTC $py3vers -m pytest ./tests -k 'not test_dateparser_data_integrity and not test_custom_language_detect_fast_text' |
| 17 |
done |