File size: 680 Bytes
b84ea83
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""
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
"""