Load only test_* files when looking for tests (python)

This commit is contained in:
Marek Marczykowski-Górecki 2018-03-06 00:05:55 +01:00
parent 321cd06591
commit 646c9f1aae
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/python
from gi.repository import Gio
from gi.repository import GLib
from gi.repository import Gio # pylint: disable=import-error
from gi.repository import GLib # pylint: disable=import-error
import sys
import os

View File

@ -10,4 +10,4 @@ export PYTHONPATH
[ -r version ] || ln -s ${ROOTDIR}/version ./
[ -r setup.py ] || ln -s ${ROOTDIR}/setup.py ./
"${PYTHON}" ./setup.py egg_info --egg-base "${TESTPYTHONPATH}"
"${PYTHON}" -m coverage run -m unittest discover -p '*.py' -v "$@"
"${PYTHON}" -m coverage run -m unittest discover -p 'test_*.py' -v "$@"