ghost-shopper-api / python /tests /__init__.py
azzaraqi
Deploy FastAPI backend with Supabase pooler support
b84ea83
Raw
History Blame Contribute Delete
680 Bytes
"""
Python Test Package β€” Phase 6 Testing Suite
Structure:
tests/
β”œβ”€β”€ __init__.py (this file)
β”œβ”€β”€ conftest.py β€” shared fixtures (test DB, async session)
β”œβ”€β”€ test_visit_model.py β€” Pydantic schema unit tests
β”œβ”€β”€ test_analytics_service.py β€” AnalyticsService unit tests
β”œβ”€β”€ test_pdf_service.py β€” PDFService unit tests
└── test_api_integration.py β€” Full endpoint integration tests (httpx)
Run:
cd python
pytest -v # all tests
pytest -v tests/ # same, explicit
pytest --cov=. --cov-report=html # with coverage
"""