Add test database configuration and schema creation for testing

This commit is contained in:
grillazz
2025-12-25 15:56:23 +01:00
parent f90513aab4
commit 5d34b04ca1
9 changed files with 96 additions and 17 deletions

View File

@@ -45,7 +45,7 @@ docker-create-db-migration: ## Create a new alembic database migration. Example
# ====================================================================================
.PHONY: docker-test
docker-test: ## Run project tests
docker compose -f compose.yml -f test-compose.yml run --rm api1 pytest tests --durations=0 -vv
docker compose -f compose.yml run --rm api1 pytest tests --durations=0 -vv
.PHONY: docker-test-snapshot
docker-test-snapshot: ## Run project tests and update snapshots