Skip to content

Commit 7550295

Browse files
committed
docs(CHANGES) Note move of test helpers
1 parent ef55d41 commit 7550295

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

CHANGES

+35
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,41 @@ $ pip install --user --upgrade --pre libtmux
1515

1616
- _Future release notes will be placed here_
1717

18+
### Breaking Changes
19+
20+
#### Test helpers: Refactor
21+
22+
Test helper functionality has been split into focused modules (#XXX):
23+
24+
- `libtmux.test` module split into:
25+
- `libtmux.test.constants`: Test-related constants (`TEST_SESSION_PREFIX`, etc.)
26+
- `libtmux.test.environment`: Environment variable mocking
27+
- `libtmux.test.random`: Random string generation utilities
28+
- `libtmux.test.temporary`: Temporary session/window management
29+
30+
**Breaking**: Import paths have changed. Update imports:
31+
32+
```python
33+
# Old (0.45.x and earlier)
34+
from libtmux.test import (
35+
TEST_SESSION_PREFIX,
36+
get_test_session_name,
37+
get_test_window_name,
38+
namer,
39+
temp_session,
40+
temp_window,
41+
EnvironmentVarGuard,
42+
)
43+
```
44+
45+
```python
46+
# New (0.46.0+)
47+
from libtmux.test.constants import TEST_SESSION_PREFIX
48+
from libtmux.test.environment import EnvironmentVarGuard
49+
from libtmux.test.random import get_test_session_name, get_test_window_name, namer
50+
from libtmux.test.temporary import temp_session, temp_window
51+
```
52+
1853
### Development
1954

2055
- CI: Check for runtime dependencies (#574)

0 commit comments

Comments
 (0)