File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -66,14 +66,15 @@ def monkeypatch_plugin_test_packages(monkeypatch):
66
66
67
67
68
68
@pytest .fixture (scope = "function" )
69
- def socket_name (request ):
69
+ def socket_name (request ) -> str :
70
70
return "tmuxp_test%s" % next (namer )
71
71
72
72
73
73
@pytest .fixture (scope = "function" )
74
- def server (request : SubRequest , monkeypatch : pytest .MonkeyPatch ) -> Server :
75
- tmux = Server ()
76
- tmux .socket_name = socket_name
74
+ def server (
75
+ request : SubRequest , monkeypatch : pytest .MonkeyPatch , socket_name : str
76
+ ) -> Server :
77
+ tmux = Server (socket_name = socket_name )
77
78
78
79
def fin () -> None :
79
80
tmux .kill_server ()
@@ -140,7 +141,7 @@ def add_doctest_fixtures(
140
141
doctest_namespace : t .Dict [str , t .Any ],
141
142
) -> None :
142
143
if isinstance (request ._pyfuncitem , DoctestItem ) and which ("tmux" ):
143
- doctest_namespace ["server" ]: "Server" = request .getfixturevalue ("server" )
144
+ doctest_namespace ["server" ] = request .getfixturevalue ("server" )
144
145
session : "Session" = request .getfixturevalue ("session" )
145
146
doctest_namespace ["session" ] = session
146
147
doctest_namespace ["window" ] = session .attached_window
You can’t perform that action at this time.
0 commit comments