From 74423eee4988b73d2742f2dd2b08b8e9edb0907f Mon Sep 17 00:00:00 2001 From: a2nr Date: Sun, 6 Sep 2026 16:17:41 +0700 Subject: [PATCH] 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 --- Makefile | 2 +- cli/tests/__init__.py | 0 pytest.ini | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 cli/tests/__init__.py diff --git a/Makefile b/Makefile index 8bad054..9092631 100644 --- a/Makefile +++ b/Makefile @@ -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: diff --git a/cli/tests/__init__.py b/cli/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/pytest.ini b/pytest.ini index ecfc574..cb25841 100644 --- a/pytest.ini +++ b/pytest.ini @@ -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