File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 11
11
if t .TYPE_CHECKING :
12
12
from libtmux .session import Session
13
13
14
+ pytest_plugins = ["pytester" ]
15
+
14
16
15
17
@pytest .fixture (autouse = True )
16
18
def add_doctest_fixtures (
17
19
request : pytest .FixtureRequest ,
18
20
doctest_namespace : t .Dict [str , t .Any ],
21
+ pytester : pytest .Pytester ,
19
22
) -> None :
20
23
if isinstance (request ._pyfuncitem , DoctestItem ) and shutil .which ("tmux" ):
21
24
request .getfixturevalue ("set_home" )
@@ -24,6 +27,7 @@ def add_doctest_fixtures(
24
27
doctest_namespace ["session" ] = session
25
28
doctest_namespace ["window" ] = session .attached_window
26
29
doctest_namespace ["pane" ] = session .attached_pane
30
+ doctest_namespace ["pytester" ] = pytester
27
31
28
32
29
33
@pytest .fixture (autouse = True , scope = "function" )
You can’t perform that action at this time.
0 commit comments