diff --git a/conftest.py b/conftest.py --- a/conftest.py +++ b/conftest.py @@ -3,6 +3,11 @@ from swh.core.cli import swh as _swhmain +pytest_plugins = [ + "swh.core.pytest_plugin", +] + + # define tests profile. Full documentation is at: # https://hypothesis.readthedocs.io/en/latest/settings.html#settings-profiles settings.register_profile("fast", max_examples=5, deadline=5000) diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -47,7 +47,6 @@ author_email="swh-devel@inria.fr", url="https://forge.softwareheritage.org/diffusion/DCORE/", packages=find_packages(), - py_modules=["pytest_swh_core"], scripts=[], install_requires=parse_requirements(None, "swh"), setup_requires=["setuptools-scm"], @@ -68,8 +67,6 @@ swh-db-init=swh.core.cli.db:db_init [swh.cli.subcommands] db=swh.core.cli.db - [pytest11] - pytest_swh_core = swh.core.pytest_plugin """, classifiers=[ "Programming Language :: Python :: 3",