Skip to content
Snippets Groups Projects
Commit 890aa210 authored by David Douard's avatar David Douard
Browse files

pytest-plugin: move the plugin in a dedicated non-swh module

This is in fact required for the pytest plugin loading mecanism to work
without hijacking the loading of swh packages.
See https://github.com/pytest-dev/pytest/issues/2042 for more details.
parent d6c5012a
No related branches found
No related tags found
No related merge requests found
File moved
setup.py 100644 → 100755
......@@ -46,6 +46,7 @@ setup(
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=['vcversioner'],
......@@ -63,8 +64,8 @@ setup(
[swh.cli.subcommands]
db=swh.core.cli.db:db
db-init=swh.core.cli.db:db_init
# [pytest11]
# pytest_swh_core = swh.core.pytest_plugin
[pytest11]
pytest_swh_core = pytest_swh_core
''',
classifiers=[
"Programming Language :: Python :: 3",
......
......@@ -7,7 +7,7 @@ import requests
from os import path
from swh.core.pytest_plugin import local_get_factory
from pytest_swh_core import local_get_factory
def test_get_response_cb_with_visits_nominal(local_get_visits):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment