Skip to content

Data tests family

Templates: databricks/tests/data_tests.jinja

Roots: workflow, step, source, sources, this, methodology, tests, connection

The data-test notebook: the step-notebook context extended with a tests block. On this family every base group is present in practice, the methodology’s audit columns arrive fully expanded, and connection carries the destination catalog and schema (not the source connector).

FieldTypeMeaning
tests.loadStepNamestringThe load step this test step validates.
tests.sourceTableFqnstringThe source table’s fully qualified name (the first upstream feed).
tests.targetTableFqnstringThe table being written.
tests.assertionsPythonstringThe rendered Python assertion body, built from the table’s effective tests and the source and target column sets.
connection.catalog / .schemastringDestination catalog and schema; the literal unknown when the table has no resolvable connection.
methodology.auditColumns[]arrayReal expanded audit columns (name, expression); the empty floor is replaced before this family renders.