refactor: organize tests into unit/ and integration/ directories
Move unit tests from tests/ to tests/unit/ for clearer separation from integration tests. Update pyproject.toml testpaths and Makefile test target to reflect the new structure.
This commit is contained in:
2
Makefile
2
Makefile
@@ -5,7 +5,7 @@ help: ## Show this help
|
|||||||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
|
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
|
||||||
|
|
||||||
test: ## Run unit tests
|
test: ## Run unit tests
|
||||||
uv run pytest tests/ -v --ignore=tests/integration
|
uv run pytest tests/unit/ -v
|
||||||
|
|
||||||
build: ## Build Docker images for testing
|
build: ## Build Docker images for testing
|
||||||
docker compose -f docker-compose.test.yaml build
|
docker compose -f docker-compose.test.yaml build
|
||||||
|
|||||||
@@ -25,4 +25,4 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
asyncio_mode = "auto"
|
asyncio_mode = "auto"
|
||||||
testpaths = ["tests"]
|
testpaths = ["tests/unit", "tests/integration"]
|
||||||
|
|||||||
0
tests/unit/__init__.py
Normal file
0
tests/unit/__init__.py
Normal file
Reference in New Issue
Block a user