mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2026-01-17 11:40:39 +03:00
Add test database configuration and schema creation for testing
This commit is contained in:
2
Makefile
2
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user