Skip to content

Schema tests

Schema tests

Use these suites when changing schema CRUD, generation, import/export, or routing.

Key suites

  • tests/unit/schema/test_schema_generator.py
  • tests/unit/schema/test_schema_import_export.py
  • tests/unit/schema/test_schema_versioning.py
  • tests/unit/schema/test_schema_generator_endpoints.py
  • tests/integration/test_schema_selection_integration.py
  • tests/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.