Skip to content

Commit 10d1f9b

Browse files
committed
test: Root level conftest
________________________ ERROR collecting test session _________________________ Defining 'pytest_plugins' in a non-top-level conftest is no longer supported: It affects the entire test suite instead of just below the conftest as expected. /home/runner/work/libtmux/libtmux/src/libtmux/conftest.py Please move it to a top level conftest file at the rootdir: /home/runner/work/libtmux/libtmux For more information, visit: https://docs.pytest.org/en/stable/deprecations.html#pytest-plugins-in-non-top-level-conftest-files
1 parent 44950da commit 10d1f9b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pytest_plugins = ["pytester"]

src/libtmux/conftest.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
if t.TYPE_CHECKING:
1212
from libtmux.session import Session
1313

14-
pytest_plugins = ["pytester"]
15-
1614

1715
@pytest.fixture(autouse=True)
1816
def add_doctest_fixtures(

0 commit comments

Comments
 (0)