Download Latest Version v0.46.2 - _start_directory_ typing fix source code.tar.gz (350.3 kB)
Email in envelope

Get an email when there's a new version of libtmux

Home / v0.45.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-02-23 1.5 kB
v0.45.0 - test helpers overhaul source code.tar.gz 2025-02-23 329.7 kB
v0.45.0 - test helpers overhaul source code.zip 2025-02-23 374.6 kB
Totals: 3 Items   705.8 kB 0

What's Changed

Breaking Changes

Test helpers: Refactor

by @tony in https://github.com/tmux-python/libtmux/pull/578

Test helper functionality has been split into focused modules (#578):

  • libtmux.test module split into:
  • libtmux.test.constants: Test-related constants (TEST_SESSION_PREFIX, etc.)
  • libtmux.test.environment: Environment variable mocking
  • libtmux.test.random: Random string generation utilities
  • libtmux.test.temporary: Temporary session/window management

Breaking: Import paths have changed. Update imports:

:::python
# Old (0.44.x and earlier)
from libtmux.test import (
    TEST_SESSION_PREFIX,
    get_test_session_name,
    get_test_window_name,
    namer,
    temp_session,
    temp_window,
    EnvironmentVarGuard,
)

:::python
# New (0.45.0+)
from libtmux.test.constants import TEST_SESSION_PREFIX
from libtmux.test.environment import EnvironmentVarGuard
from libtmux.test.random import get_test_session_name, get_test_window_name, namer
from libtmux.test.temporary import temp_session, temp_window

Misc

CI

Full Changelog: https://github.com/tmux-python/libtmux/compare/v0.44.2...v0.45.0

Source: README.md, updated 2025-02-23