Load only test_* files when looking for tests (python)
This commit is contained in:
parent
321cd06591
commit
646c9f1aae
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
from gi.repository import Gio
|
from gi.repository import Gio # pylint: disable=import-error
|
||||||
from gi.repository import GLib
|
from gi.repository import GLib # pylint: disable=import-error
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
@ -10,4 +10,4 @@ export PYTHONPATH
|
|||||||
[ -r version ] || ln -s ${ROOTDIR}/version ./
|
[ -r version ] || ln -s ${ROOTDIR}/version ./
|
||||||
[ -r setup.py ] || ln -s ${ROOTDIR}/setup.py ./
|
[ -r setup.py ] || ln -s ${ROOTDIR}/setup.py ./
|
||||||
"${PYTHON}" ./setup.py egg_info --egg-base "${TESTPYTHONPATH}"
|
"${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 "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user