simplify test and add reset-db make command

This commit is contained in:
Swifty
2025-10-17 11:12:00 +02:00
parent 3b5d919399
commit 1ed224d481
2 changed files with 9 additions and 5 deletions

View File

@@ -8,6 +8,11 @@ start-core:
stop-core:
docker compose stop deps
reset-db:
rm -rf db/docker/volumes/db/data
cd backend && poetry run prisma migrate deploy
cd backend && poetry run prisma generate
# View logs for core services
logs-core:
docker compose logs -f deps
@@ -43,8 +48,10 @@ help:
@echo "Targets:"
@echo " start-core - Start just the core services (Supabase, Redis, RabbitMQ) in background"
@echo " stop-core - Stop the core services"
@echo " reset-db - Reset the database by deleting the volume"
@echo " logs-core - Tail the logs for core services"
@echo " format - Format & lint backend (Python) and frontend (TypeScript) code"
@echo " migrate - Run backend database migrations"
@echo " run-backend - Run the backend FastAPI server"
@echo " run-frontend - Run the frontend Next.js development server"
@echo " run-frontend - Run the frontend Next.js development server"
@echo " test-data - Run the test data creator"

View File

@@ -571,10 +571,7 @@ async def main():
@pytest.mark.asyncio
@pytest.mark.integration
async def test_main_function_runs_without_errors():
try:
await main()
except Exception as e:
assert False, f"main() raised an exception: {e}"
await main()
if __name__ == "__main__":