fix(test): update make test-cli path and configure pytest cache_dir for container compatibility

- Point make test-cli to isolated cli/tests/test_cli_tui.py
- Add cache_dir = /tmp/.pytest_cache in pytest.ini to avoid permission denied warnings under non-root container users
This commit is contained in:
a2nr 2026-09-06 16:17:41 +07:00
parent 7d590e0f95
commit 74423eee49
3 changed files with 2 additions and 1 deletions

View File

@ -68,7 +68,7 @@ test-shell:
## CLI and TUI unit tests — pure logic, fast
test-cli:
$(PYTEST) services/tests/test_cli_tui.py -v
$(PYTEST) cli/tests/test_cli_tui.py -v
## List collected tests
test-list:

0
cli/tests/__init__.py Normal file
View File

View File

@ -4,5 +4,6 @@ markers =
integration: Requires database/services (PostgreSQL, Flask test client, service deps)
e2e: End-to-end smoke tests (browser/headless or full-stack container)
addopts = -v --tb=short --strict-markers
cache_dir = /tmp/.pytest_cache
testpaths =
services/tests