Skip to content

Commit f6a4d6b

Browse files
committed
fix ci
1 parent 1d1b414 commit f6a4d6b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

python/lib/sift_client/_tests/pytest_plugin/conftest.py

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

2626
import pytest
2727

28-
pytest_plugins = ["pytester"]
29-
3028

3129
@pytest.fixture
3230
def write_plugin_conftest(pytester: pytest.Pytester) -> Callable[[], None]:

python/pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,10 @@ select = [
388388
env_files = [
389389
".env"
390390
]
391+
# `pytester` is registered globally because pytest 8+ disallows `pytest_plugins`
392+
# in non-top-level conftests. Only the plugin test suite uses it; activating it
393+
# globally is harmless since the fixture is opt-in.
394+
addopts = "-p pytester"
391395
testpaths = [
392396
"lib/sift_py",
393397
"lib/sift_client/_tests",

0 commit comments

Comments
 (0)