Skip to content

Commit 0b81888

Browse files
committed
docs(conftest.py): Document root-level rationale
1 parent 77f898d commit 0b81888

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

conftest.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
"""Conftest.py (root-level)
2+
3+
We keep this in root pytest fixtures in pytest's doctest plugin to be available, as well
4+
as avoiding conftest.py from being included in the wheel, in addition to pytest_plugin
5+
for pytester only being available via the root directory.
6+
7+
See "pytest_plugins in non-top-level conftest files" in
8+
https://docs.pytest.org/en/stable/deprecations.html
9+
"""
110
import pathlib
211
import shutil
312
import typing as t

0 commit comments

Comments
 (0)