Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f1862b4

Browse filesBrowse files
committed
docs(MIGRATION) Note move of test helpers
1 parent 4713ed9 commit f1862b4
Copy full SHA for f1862b4

File tree

Expand file treeCollapse file tree

1 file changed

+35
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+35
-0
lines changed

‎MIGRATION

Copy file name to clipboardExpand all lines: MIGRATION
+35Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,41 @@ _Detailed migration steps for the next version will be posted here._
2525

2626
<!-- To the maintainers and contributors: please add migration details for the upcoming release here -->
2727

28+
## libtmux 0.45.x (Yet to be released)
29+
30+
### Test helpers: Module moves
31+
32+
Test helper functionality has been split into focused modules (#XXX):
33+
34+
- `libtmux.test` module split into:
35+
- `libtmux.test.constants`: Test-related constants (`TEST_SESSION_PREFIX`, etc.)
36+
- `libtmux.test.environment`: Environment variable mocking
37+
- `libtmux.test.random`: Random string generation utilities
38+
- `libtmux.test.temporary`: Temporary session/window management
39+
40+
**Breaking**: Import paths have changed. Update imports:
41+
42+
```python
43+
# Old (0.45.x and earlier)
44+
from libtmux.test import (
45+
TEST_SESSION_PREFIX,
46+
get_test_session_name,
47+
get_test_window_name,
48+
namer,
49+
temp_session,
50+
temp_window,
51+
EnvironmentVarGuard,
52+
)
53+
```
54+
55+
```python
56+
# New (0.46.0+)
57+
from libtmux.test.constants import TEST_SESSION_PREFIX
58+
from libtmux.test.environment import EnvironmentVarGuard
59+
from libtmux.test.random import get_test_session_name, get_test_window_name, namer
60+
from libtmux.test.temporary import temp_session, temp_window
61+
```
62+
2863
## 0.35.0: Commands require explicit targets (2024-03-17)
2964

3065
### Commands require explicit targets (#535)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.