File tree Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Original file line number Diff line number Diff line change 5
5
libtmux provides pytest fixtures for tmux. The plugin automatically manages setup and teardown of an
6
6
independent tmux server.
7
7
8
- ``` {toctree}
9
-
10
- test
11
- ```
12
-
13
8
``` {seealso} Using the pytest plugin?
14
9
15
10
Do you want more flexbility? Correctness? Power? Defaults changed? [Connect with us] on the tracker, we want to know
@@ -33,7 +28,15 @@ $ pip install libtmux
33
28
34
29
The pytest plugin will be automatically detected via pytest, and the fixtures will be added.
35
30
36
- ## Fixtures
31
+ ### Real world usage
32
+
33
+ View libtmux's own [ tests/] ( https://github.com/tmux-python/libtmux/tree/master/tests ) as well as
34
+ tmuxp's [ tests/] ( https://github.com/tmux-python/tmuxp/tree/master/tests ) .
35
+
36
+ libtmux's tests ` autouse ` the {ref}` recommended-fixtures ` above to ensure stable, assertions and
37
+ object lookups in the test grid.
38
+
39
+ ## pytest-tmux
37
40
38
41
` pytest-tmux ` works through providing {ref}` pytest fixtures <pytest:fixtures-api> ` - so read up on
39
42
those!
@@ -82,15 +85,7 @@ def set_home(
82
85
monkeypatch.setenv(" HOME" , str (user_path))
83
86
```
84
87
85
- ## See examples
86
-
87
- View libtmux's own [ tests/] ( https://github.com/tmux-python/libtmux/tree/master/tests ) as well as
88
- tmuxp's [ tests/] ( https://github.com/tmux-python/tmuxp/tree/master/tests ) .
89
-
90
- libtmux's tests ` autouse ` the {ref}` recommended-fixtures ` above to ensure stable, assertions and
91
- object lookups in the test grid.
92
-
93
- ## API reference
88
+ ## Fixtures
94
89
95
90
``` {eval-rst}
96
91
.. automodule:: libtmux.pytest_plugin
@@ -100,3 +95,11 @@ object lookups in the test grid.
100
95
:show-inheritance:
101
96
:member-order: bysource
102
97
```
98
+
99
+ ## Test utilities
100
+
101
+ ``` {toctree}
102
+ :maxdepth: 1
103
+
104
+ test
105
+ ```
You can’t perform that action at this time.
0 commit comments