test: add isolated real-tmux smoke tests

Drive TmuxRunner against a throwaway tmux server (isolated via TMUX_TMPDIR)
so the tests never touch the user's live tmux. Register the 'tmux' pytest marker.
Skips when no tmux binary is present.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-10 20:56:58 -04:00
parent 8bfbead34f
commit d78d8ee149
2 changed files with 120 additions and 0 deletions
+5
View File
@@ -27,6 +27,11 @@ dev = [
"ty>=0.0.47",
]
[tool.pytest.ini_options]
markers = [
"tmux: real-tmux smoke tests; require a tmux binary and run on an isolated TMUX_TMPDIR server",
]
[tool.hqt.quality]
required_after_code_or_test_changes = [
"uv run ruff format src tests",