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 1414import pytest
1515from _pytest .doctest import DoctestItem
1616
17+ from libtmux .pane import Pane
1718from libtmux .pytest_plugin import USING_ZSH
19+ from libtmux .server import Server
20+ from libtmux .session import Session
21+ from libtmux .window import Window
1822
1923if t .TYPE_CHECKING :
2024 from libtmux .session import Session
@@ -30,6 +34,10 @@ def add_doctest_fixtures(
3034 """Configure doctest fixtures for pytest-doctest."""
3135 if isinstance (request ._pyfuncitem , DoctestItem ) and shutil .which ("tmux" ):
3236 request .getfixturevalue ("set_home" )
37+ doctest_namespace ["Server" ] = Server
38+ doctest_namespace ["Session" ] = Session
39+ doctest_namespace ["Window" ] = Window
40+ doctest_namespace ["Pane" ] = Pane
3341 doctest_namespace ["server" ] = request .getfixturevalue ("server" )
3442 session : "Session" = request .getfixturevalue ("session" )
3543 doctest_namespace ["session" ] = session
You can’t perform that action at this time.
0 commit comments