From 6b175bacf887771d1d31f62fd5a6586010143515 Mon Sep 17 00:00:00 2001 From: mb Date: Tue, 6 Oct 2020 09:04:15 +0200 Subject: [PATCH] test:migrate to latest pytest-invenio and docker-services-cli This closes #19 --- pytest.ini | 7 +++---- run-tests.sh | 13 ++++++++----- setup.py | 2 +- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/pytest.ini b/pytest.ini index 3ce1a66..bfaacfc 100644 --- a/pytest.ini +++ b/pytest.ini @@ -7,7 +7,6 @@ # details. [pytest] -pep8ignore = docs/conf.py ALL -addopts = --pep8 --doctest-glob="*.rst" --doctest-modules --cov=invenio_config_tugraz --cov-report=term-missing -testpaths = docs tests invenio_config_tugraz -filterwarnings = ignore::pytest.PytestDeprecationWarning \ No newline at end of file +addopts = --isort --pydocstyle --pycodestyle --doctest-glob="*.rst" --doctest-modules --cov=invenio_config_tugraz --cov-report=term-missing +testpaths = tests invenio_config_tugraz +live_server_scope = module \ No newline at end of file diff --git a/run-tests.sh b/run-tests.sh index a38099e..4a867b0 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -7,8 +7,11 @@ # modify it under the terms of the MIT License; see LICENSE file for more # details. -pydocstyle invenio_config_tugraz tests docs && \ -isort invenio_config_tugraz tests --check-only --diff && \ -check-manifest --ignore ".travis-*" && \ -sphinx-build -qnNW docs docs/_build/html && \ -pytest +docker-services-cli up postgresql es redis +python -m check_manifest --ignore ".travis-*" && \ +python -m sphinx.cmd.build -qnNW docs docs/_build/html && \ +docker-services-cli up es postgresql redis +python -m pytest +tests_exit_code=$? +docker-services-cli down +exit "$tests_exit_code" \ No newline at end of file diff --git a/setup.py b/setup.py index a3c6207..ad3201f 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ readme = open('README.rst').read() history = open('CHANGES.rst').read() tests_require = [ - 'pytest-invenio>=1.3.2', + 'pytest-invenio>=1.4.0', ] extras_require = {