1+ """libtmux pytest plugin."""
12import contextlib
23import getpass
34import logging
@@ -26,13 +27,13 @@ def home_path(tmp_path_factory: pytest.TempPathFactory) -> pathlib.Path:
2627
2728@pytest .fixture (scope = "session" )
2829def home_user_name () -> str :
29- """Default username to set for :func:`user_path` fixture."""
30+ """Return default username to set for :func:`user_path` fixture."""
3031 return getpass .getuser ()
3132
3233
3334@pytest .fixture (scope = "session" )
3435def user_path (home_path : pathlib .Path , home_user_name : str ) -> pathlib .Path :
35- """Default temporary user directory.
36+ """Ensure and return temporary user directory.
3637
3738 Used by: :func:`config_file`, :func:`zshrc`
3839
@@ -46,7 +47,7 @@ def user_path(home_path: pathlib.Path, home_user_name: str) -> pathlib.Path:
4647@pytest .mark .skipif (USING_ZSH , reason = "Using ZSH" )
4748@pytest .fixture (scope = "session" )
4849def zshrc (user_path : pathlib .Path ) -> pathlib .Path :
49- """This quiets ZSH default message.
50+ """Suppress ZSH default message.
5051
5152 Needs a startup file .zshenv, .zprofile, .zshrc, .zlogin.
5253 """
@@ -57,7 +58,7 @@ def zshrc(user_path: pathlib.Path) -> pathlib.Path:
5758
5859@pytest .fixture (scope = "session" )
5960def config_file (user_path : pathlib .Path ) -> pathlib .Path :
60- """Default ` .tmux.conf` configuration.
61+ """Return fixture for `` .tmux.conf` ` configuration.
6162
6263 - ``base-index -g 1``
6364
@@ -109,7 +110,7 @@ def server(
109110 monkeypatch : pytest .MonkeyPatch ,
110111 config_file : pathlib .Path ,
111112) -> Server :
112- """Returns a new, temporary :class:`libtmux.Server`.
113+ """Return new, temporary :class:`libtmux.Server`.
113114
114115 >>> from libtmux.server import Server
115116
@@ -146,7 +147,7 @@ def fin() -> None:
146147
147148@pytest .fixture (scope = "function" )
148149def session_params () -> t .Dict [str , t .Any ]:
149- """Returns a new, temporary :class:`libtmux.Session`.
150+ """Return new, temporary :class:`libtmux.Session`.
150151
151152 >>> import pytest
152153 >>> from libtmux.session import Session
@@ -186,7 +187,7 @@ def session_params() -> t.Dict[str, t.Any]:
186187def session (
187188 request : pytest .FixtureRequest , session_params : t .Dict [str , t .Any ], server : Server
188189) -> "Session" :
189- """Returns a new, temporary :class:`libtmux.Session`.
190+ """Return new, temporary :class:`libtmux.Session`.
190191
191192 >>> from libtmux.session import Session
192193
0 commit comments