diff --git a/swh/indexer/storage/api/wsgi.py b/swh/indexer/storage/api/wsgi.py deleted file mode 100644 --- a/swh/indexer/storage/api/wsgi.py +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (C) 2019 The Software Heritage developers -# See the AUTHORS file at the top-level directory of this distribution -# License: GNU General Public License version 3, or any later version -# See top-level LICENSE file for more information - -from .server import make_app_from_configfile - -application = make_app_from_configfile() diff --git a/tox.ini b/tox.ini --- a/tox.ini +++ b/tox.ini @@ -7,7 +7,10 @@ pytest-cov pifpaf commands = - pifpaf run postgresql -- pytest --doctest-modules --hypothesis-profile=fast --cov=swh --cov-branch {posargs} + pifpaf run postgresql -- pytest --doctest-modules --hypothesis-profile=fast \ + {envsitepackagesdir}/swh/indexer \ + --cov={envsitepackagesdir}/swh/indexer \ + --cov-branch {posargs} [testenv:py3-slow] deps = @@ -15,7 +18,10 @@ pytest-cov pifpaf commands = - pifpaf run postgresql -- pytest --doctest-modules --hypothesis-profile=slow --cov=swh --cov-branch {posargs} + pifpaf run postgresql -- pytest --doctest-modules --hypothesis-profile=slow \ + {envsitepackagesdir}/swh/indexer \ + --cov={envsitepackagesdir}/swh/indexer \ + --cov-branch {posargs} [testenv:py3-prop] deps = @@ -23,7 +29,9 @@ pytest-cov pifpaf commands = - pifpaf run postgresql -- pytest --doctest-modules --hypothesis-profile=fast -m property_based --disable-warnings + pifpaf run postgresql -- pytest --doctest-modules --hypothesis-profile=fast \ + -m property_based --disable-warnings \ + {envsitepackagesdir}/swh/indexer [testenv:flake8] skip_install = true