diff --git a/changelog.d/+pytest-9.0.infrastructure.md b/changelog.d/+pytest-9.0.infrastructure.md new file mode 100644 index 000000000..01a4c3d47 --- /dev/null +++ b/changelog.d/+pytest-9.0.infrastructure.md @@ -0,0 +1 @@ +Fix tests with pytest 9.0. \ No newline at end of file diff --git a/test/conftest.py b/test/conftest.py index 8f0629b9c..6b5f2de8c 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -12,6 +12,8 @@ import pytest +pytest_plugins = ['b2sdk.v3.testing'] + @pytest.hookimpl def pytest_configure(config): diff --git a/test/integration/conftest.py b/test/integration/conftest.py index 1a7226d33..035a2beda 100755 --- a/test/integration/conftest.py +++ b/test/integration/conftest.py @@ -47,9 +47,6 @@ GENERAL_BUCKET_NAME_PREFIX = 'clitst' -pytest_plugins = ['b2sdk.v3.testing'] - - @pytest.fixture(scope='session', autouse=True) def summary_notes(request, worker_id): capmanager = request.config.pluginmanager.getplugin('capturemanager')