Skip to content

Commit 7511b0b

Browse files
Merge pull request #1133 from selfisekai/pytest_plugins
Move pytest_plugins to top-level conftest
2 parents f9e7638 + 283c432 commit 7511b0b

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix tests with pytest 9.0.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ format = [
6363
lint = [
6464
"ruff~=0.8.4",
6565
"pytest==8.3.3",
66+
"tenacity>=8.2.3,<9",
6667
"liccheck>=0.9.2",
6768
"setuptools>=60,<80", # required by liccheck
6869
]

test/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
import pytest
1414

15+
pytest_plugins = ['b2sdk.v3.testing']
16+
1517

1618
@pytest.hookimpl
1719
def pytest_configure(config):

test/integration/conftest.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@
4747
GENERAL_BUCKET_NAME_PREFIX = 'clitst'
4848

4949

50-
pytest_plugins = ['b2sdk.v3.testing']
51-
52-
5350
@pytest.fixture(scope='session', autouse=True)
5451
def summary_notes(request, worker_id):
5552
capmanager = request.config.pluginmanager.getplugin('capturemanager')

uv.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)