File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 14
14
import pytest
15
15
from _pytest .doctest import DoctestItem
16
16
17
+ from libtmux .pane import Pane
17
18
from libtmux .pytest_plugin import USING_ZSH
19
+ from libtmux .server import Server
20
+ from libtmux .session import Session
21
+ from libtmux .window import Window
18
22
19
23
if t .TYPE_CHECKING :
20
24
from libtmux .session import Session
@@ -30,6 +34,10 @@ def add_doctest_fixtures(
30
34
"""Configure doctest fixtures for pytest-doctest."""
31
35
if isinstance (request ._pyfuncitem , DoctestItem ) and shutil .which ("tmux" ):
32
36
request .getfixturevalue ("set_home" )
37
+ doctest_namespace ["Server" ] = Server
38
+ doctest_namespace ["Session" ] = Session
39
+ doctest_namespace ["Window" ] = Window
40
+ doctest_namespace ["Pane" ] = Pane
33
41
doctest_namespace ["server" ] = request .getfixturevalue ("server" )
34
42
session : "Session" = request .getfixturevalue ("session" )
35
43
doctest_namespace ["session" ] = session
You can’t perform that action at this time.
0 commit comments