Schema tests
Schema tests
Use these suites when changing schema CRUD, generation, import/export, or routing.
Key suites
tests/unit/schema/test_schema_generator.pytests/unit/schema/test_schema_import_export.pytests/unit/schema/test_schema_versioning.pytests/unit/schema/test_schema_generator_endpoints.pytests/integration/test_schema_selection_integration.pytests/unit/schema/test_schema_response_fields.py
What these tests prove
- schema generation produces the expected field structure
- import/export preserves the schema contract
- route wiring reaches the correct schema endpoints
- tenant-scoped schema selection behaves as expected
- versioning rules remain stable across schema updates
Minimal validation
If the change touches only a serializer or a mixin, run the narrow unit test first. If it affects the route contract, add the integration suite.