-
Notifications
You must be signed in to change notification settings - Fork 112
Commit 11c2936
committed
test: Add comprehensive unit tests for async pane methods (16 tests)
Add complete test coverage for the three new async pane methods:
asend_keys, acapture_pane, and asplit.
New tests in tests/asyncio/test_pane.py:
asend_keys tests (5):
- test_asend_keys_basic_execution: Basic command with enter
- test_asend_keys_without_enter: Command visible but not executed
- test_asend_keys_literal_mode: Special chars sent as text, not signals
- test_asend_keys_suppress_history: History suppression verification
- test_asend_keys_concurrent_multiple_panes: Concurrent execution across 3 panes
acapture_pane tests (5):
- test_acapture_pane_basic: Basic output capture
- test_acapture_pane_with_start_parameter: Capture with history (start=-10)
- test_acapture_pane_with_end_parameter: Limited output capture (end=5)
- test_acapture_pane_full_history: Complete scrollback (start="-", end="-")
- test_acapture_pane_concurrent_multiple_panes: Concurrent capture from 3 panes
asplit tests (6):
- test_asplit_default_below: Default split direction
- test_asplit_direction_right: Vertical split with direction
- test_asplit_with_start_directory: Split with custom working directory
- test_asplit_with_size: Split with size parameter (30%)
- test_asplit_with_shell_command: Auto-closing pane after command
- test_asplit_concurrent_multiple_splits: Concurrent pane creation
All tests:
- Use isolated TestServer fixture (libtmux_test{random})
- Include comprehensive safety documentation
- Test real-world concurrent patterns
- Verify edge cases and parameter combinations
Total: 16 new tests, all passing
Test time: ~4.7 seconds for all 16 tests
This achieves 100% test coverage for the new async methods.1 parent feabf56 commit 11c2936Copy full SHA for 11c2936
File tree
Expand file treeCollapse file tree
1 file changed
+412
-0
lines changedOpen diff view settings
Filter options
- tests/asyncio
Expand file treeCollapse file tree
1 file changed
+412
-0
lines changedOpen diff view settings
0 commit comments