We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d1b414 commit f6a4d6bCopy full SHA for f6a4d6b
2 files changed
python/lib/sift_client/_tests/pytest_plugin/conftest.py
@@ -25,8 +25,6 @@
25
26
import pytest
27
28
-pytest_plugins = ["pytester"]
29
-
30
31
@pytest.fixture
32
def write_plugin_conftest(pytester: pytest.Pytester) -> Callable[[], None]:
python/pyproject.toml
@@ -388,6 +388,10 @@ select = [
388
env_files = [
389
".env"
390
]
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"
395
testpaths = [
396
"lib/sift_py",
397
"lib/sift_client/_tests",
0 commit comments