File tree 1 file changed +17
-3
lines changed
1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 1
- """libtmux pytest plugin."""
1
+ """Provide a pytest plugin that supplies libtmux testing fixtures.
2
+
3
+ This plugin integrates with pytest to offer session, window, and environment
4
+ fixtures tailored for tmux-based tests. It ensures stable test environments by
5
+ creating and tearing down temporary sessions and windows for each test as
6
+ needed.
7
+
8
+ Notes
9
+ -----
10
+ The existing doctests embedded within each fixture are preserved to maintain
11
+ clarity and verify core behaviors.
12
+
13
+ """
2
14
3
15
from __future__ import annotations
4
16
@@ -68,7 +80,8 @@ def config_file(user_path: pathlib.Path) -> pathlib.Path:
68
80
69
81
- ``base-index -g 1``
70
82
71
- These guarantee pane and windows targets can be reliably referenced and asserted.
83
+ These guarantee pane and windows targets can be reliably referenced
84
+ and asserted.
72
85
73
86
Note: You will need to set the home directory, see :ref:`set_home`.
74
87
"""
@@ -86,7 +99,8 @@ def config_file(user_path: pathlib.Path) -> pathlib.Path:
86
99
def clear_env (monkeypatch : pytest .MonkeyPatch ) -> None :
87
100
"""Clear out any unnecessary environment variables that could interrupt tests.
88
101
89
- tmux show-environment tests were being interrupted due to a lot of crazy env vars.
102
+ tmux show-environment tests were being interrupted due to a lot of
103
+ crazy env vars.
90
104
"""
91
105
for k in os .environ :
92
106
if not any (
You can’t perform that action at this time.
0 commit comments