Split backend tests into unit and integration suites, add isolated fixtures and coverage enforcement, and update CI and test documentation. Cover current authentication, content, notification, payment, media, and admin flows; fix behaviors revealed by the new tests. Validate both suites and the per-module gate against local PostgreSQL.
14 lines
701 B
INI
14 lines
701 B
INI
[pytest]
|
|
DJANGO_SETTINGS_MODULE = config.settings.test
|
|
python_files = test_*.py
|
|
testpaths = apps core config
|
|
markers =
|
|
unit: Isolated tests without database or HTTP requests.
|
|
integration: Database, HTTP, or management command tests.
|
|
addopts = --strict-markers --import-mode=importlib
|
|
filterwarnings =
|
|
# Django Ninja 1.4.3 still defines internal schemas with Pydantic class Config.
|
|
ignore:Support for class-based `config` is deprecated: pydantic.warnings.PydanticDeprecatedSince20
|
|
# Django 5.2 warns while Ninja builds schemas from model URLFields.
|
|
ignore:The default scheme will be changed from 'http' to 'https' in Django 6.0:django.utils.deprecation.RemovedInDjango60Warning
|