Add autopkgtests for Python 2 and 3

This commit is contained in:
Ghislain Antony Vaillant 2018-03-05 22:40:41 +00:00
parent 20b3b96a52
commit 5d84bf658c

21
debian/tests/control vendored Normal file
View file

@ -0,0 +1,21 @@
Test-Command: set -e
; cp test*.py "$AUTOPKGTEST_TMP"
; for py in $(pyversions -r 2>/dev/null)
; do cd "$AUTOPKGTEST_TMP"
; echo "Testing with $py:"
; $py -m pytest -v --assert=plain
; done
Depends: python-all,
python-pytest,
python-pytest-mock
Test-Command: set -e
; cp test*.py "$AUTOPKGTEST_TMP"
; for py in $(py3versions -r 2>/dev/null)
; do cd "$AUTOPKGTEST_TMP"
; echo "Testing with $py:"
; $py -m pytest -v --assert=plain
; done
Depends: python3-all,
python3-pytest,
python3-pytest-mock