20 lines
711 B
Markdown
20 lines
711 B
Markdown
|
|
Integration tests in this folder are intended to run against the project's
|
||
|
|
configured MySQL backend, so the API flow is exercised with a real relational
|
||
|
|
database instead of in-memory fixtures.
|
||
|
|
|
||
|
|
Recommended command:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
DJANGO_SETTINGS_MODULE=config.settings python manage.py test integration_tests
|
||
|
|
```
|
||
|
|
|
||
|
|
Notes:
|
||
|
|
- Django will still create an isolated test database on the same MySQL server
|
||
|
|
(for example `test_ai` when `DB_NAME=ai`).
|
||
|
|
- External AI providers, remote sensing calls, and Celery workers are stubbed
|
||
|
|
inside the tests so the suite stays deterministic while database writes stay
|
||
|
|
real.
|
||
|
|
- The tests in this folder use the full `config.urls` router, not the reduced
|
||
|
|
`config.test_urls` router.
|
||
|
|
|