Files
TZERO78 860695b649 test: Add comprehensive test infrastructure
Setup complete test suite foundation:

Structure:
- tests/unit/ for fast isolated tests
- tests/integration/ for workflow tests
- conftest.py with 12 reusable fixtures
- pytest.ini with markers and config
- Makefile integration (6 test targets)

Fixtures Implemented:
- Configuration: tmp_config, cli_runner
- Mocking: mock_root, mock_subprocess
- Docker: mock_docker_client, mock_docker_inspect
- Kopia: mock_kopia_connected, mock_kopia_status
- Test Data: mock_backup_unit, sample_snapshots

Initial Tests (10/10 passing):
- Version command
- Root permission checks
- Error handling
- Context initialization

Documentation:
- tests/README.md with examples and guides
- Inline docstrings for all fixtures

Next: Implement tests per command/module as needed.
Test coverage will grow organically with development.
2025-10-03 00:02:44 +02:00

0 lines
0 B
Python