Skip to content

Commit 0cb9dfe

Browse files
committed
docs: Refactor for test helpers and #578
1 parent 7ac0f21 commit 0cb9dfe

File tree

8 files changed

+58
-14
lines changed

8 files changed

+58
-14
lines changed

docs/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ about
2020
topics/index
2121
api/index
2222
pytest-plugin/index
23+
test-helpers/index
2324
```
2425

2526
```{toctree}

docs/pytest-plugin/index.md

-8
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,3 @@ def set_home(
147147
:show-inheritance:
148148
:member-order: bysource
149149
```
150-
151-
## Test utilities
152-
153-
```{toctree}
154-
:maxdepth: 1
155-
156-
test
157-
```

docs/pytest-plugin/test.md

-6
This file was deleted.

docs/test-helpers/constants.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Constants
2+
3+
Test-related constants used across libtmux test helpers.
4+
5+
```{eval-rst}
6+
.. automodule:: libtmux.test.constants
7+
:members:
8+
:undoc-members:
9+
:show-inheritance:
10+
```

docs/test-helpers/environment.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Environment
2+
3+
Environment variable mocking utilities for tests.
4+
5+
```{eval-rst}
6+
.. automodule:: libtmux.test.environment
7+
:members:
8+
:undoc-members:
9+
:show-inheritance:
10+
```

docs/test-helpers/index.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Test helpers
2+
3+
Test helpers for libtmux and downstream libraries.
4+
5+
```{toctree}
6+
:maxdepth: 2
7+
8+
constants
9+
environment
10+
random
11+
temporary
12+
```
13+
14+
```{eval-rst}
15+
.. automodule:: libtmux.test
16+
:members:
17+
```

docs/test-helpers/random.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Random
2+
3+
Random string generation utilities for test names.
4+
5+
```{eval-rst}
6+
.. automodule:: libtmux.test.random
7+
:members:
8+
:undoc-members:
9+
:show-inheritance:
10+
```

docs/test-helpers/temporary.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Temporary Objects
2+
3+
Context managers for temporary tmux objects (sessions, windows).
4+
5+
```{eval-rst}
6+
.. automodule:: libtmux.test.temporary
7+
:members:
8+
:undoc-members:
9+
:show-inheritance:
10+
```

0 commit comments

Comments
 (0)