File: upstreamtests

package info (click to toggle)
python-tabulate 0.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 552 kB
  • sloc: python: 5,466; sh: 7; makefile: 3
file content (11 lines) | stat: -rwxr-xr-x 480 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
set -e
SOURCE_ROOT=`pwd`
# import from the installed version not the source tree, but read tests themselves from the source tree as they aren't installed
# need to be here as test_cli expects to find the command by a relative path
cd /usr/lib/python3/dist-packages
for py in `py3versions -s` ; do
    # based on upstream tox.ini
    $py -m pytest -v --doctest-modules /usr/lib/python3/dist-packages/tabulate
    $py -m pytest -v --doctest-modules $SOURCE_ROOT/test
done