Skip to content

Commit f79993a

Browse files
committed
docs(CHANGES) Note TestServer, new Server params
1 parent 87ce76c commit f79993a

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

CHANGES

+20-1
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,27 @@ $ pip install --user --upgrade --pre libtmux
1111

1212
## libtmux 0.43.x (Yet to be released)
1313

14+
<!-- To maintainers and contributors: Please add notes for the forthcoming version below -->
15+
1416
- _Future release notes will be placed here_
1517

16-
<!-- To maintainers and contributors: Please add notes for the forthcoming version above -->
18+
### Features
19+
20+
Server now accepts 2 new optional params, `socket_name_factory` and `on_init` callbacks (#565):
21+
22+
- `socket_name_factory`: Callable that generates unique socket names for new servers
23+
- `on_init`: Callback that runs after server initialization
24+
- Useful for creating multiple servers with unique names and tracking server instances
25+
- Socket name factory is tried after socket_name, maintaining backward compatibility
26+
27+
#### New test fixture: `TestServer`
28+
29+
Add `TestServer` pytest fixture for creating temporary tmux servers (#565):
30+
31+
- Creates servers with unique socket names that clean up after themselves
32+
- Useful for testing interactions between multiple tmux servers
33+
- Includes comprehensive test coverage and documentation
34+
- Available in doctest namespace
1735

1836
## libtmux 0.42.1 (2024-02-15)
1937

@@ -88,6 +106,7 @@ _Maintenance only, no bug fixes or new features_
88106
```sh
89107
ruff check --select ALL . --fix --unsafe-fixes --preview --show-fixes; ruff format .
90108
```
109+
91110
- Tests: Stability fixes for legacy `test_select_pane` test (#552)
92111

93112
## libtmux 0.39.0 (2024-11-26)

0 commit comments

Comments
 (0)