diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-02-10 11:37:55 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-02-10 11:38:45 +0100 |
commit | 11de6f55f48447325325ec2f334af5576d12e2ed (patch) | |
tree | 586194afdf198bc6f4773fc480fbdfc64a2250aa /.gitlab-ci | |
parent | 9a9bb732752e7bec42a1c13f080b37536876e3e0 (diff) | |
download | pygobject-11de6f55f48447325325ec2f334af5576d12e2ed.tar.gz |
tests: switch to pytest as the default test runner. See #153
The TEST_NAMES env var gets translated to work with the pytest syntax
(foo.py::class::method).
Rename one class which triggers a pytest warning because it starts with
"Test" but isn't one.
Remove erroring out on Python warnings as pytest triggers some
deprecation warnings by default.
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x | .gitlab-ci/test-docker.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitlab-ci/test-docker.sh b/.gitlab-ci/test-docker.sh index da34d5db..2ec40936 100755 --- a/.gitlab-ci/test-docker.sh +++ b/.gitlab-ci/test-docker.sh @@ -5,7 +5,7 @@ set -e python --version python -m pip install git+https://github.com/pygobject/pycairo.git -python -m pip install flake8 +python -m pip install flake8 pytest PY_PREFIX="$(python -c 'import sys; sys.stdout.write(sys.prefix)')" export PKG_CONFIG_PATH="${PY_PREFIX}/lib/pkgconfig" |