Files
Nicholas Ferguson 3694a21de0 test: initialize test suite with command palette unit tests
Created comprehensive test infrastructure:
- tests/conftest.py with shared fixtures (temp_dir, cortex_root_dir, etc.)
- tests/unit/ for fast unit tests
- tests/integration/ for integration tests
- test_command_palette.py: 15 unit tests for CommandRegistry and CommandPalette

Test Coverage:
- CommandRegistry: register, register_batch, clear, get_all operations
- CommandPalette fuzzy matching: exact matches, consecutive chars, no matches
- Command filtering and sorting by match score
- 62.31% coverage of tui_command_palette module

All tests pass in 0.39s, meeting the 15% minimum coverage requirement.
Pytest configuration in pytest.ini enables markers and enforces coverage.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 17:01:20 -05:00
..