feat(dbt): dim_school.inspectorate and ofsted_listed (H4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6cc135ec58
commit
8e82e2e4cf
6 files changed
+101
-7
No files matched your search
@@ -14,6 +14,8 @@ unit_tests:
|
||||
- input: ref('int_ofsted_latest')
|
||||
rows:
|
||||
- {urn: 102408, inspection_date: '2025-06-17', overall_effectiveness: null, ungraded_grade: 2, framework: 'Schools - S5', latest_visit_date: '2025-06-17', current_grade: null}
|
||||
- input: ref('int_ofsted_listed')
|
||||
rows: []
|
||||
expect:
|
||||
rows:
|
||||
- {urn: 102408, ofsted_grade: null, ofsted_date: '2025-06-17', ofsted_framework: 'Schools - S5'}
|
||||
@@ -30,6 +32,30 @@ unit_tests:
|
||||
- input: ref('int_ofsted_latest')
|
||||
rows:
|
||||
- {urn: 139888, inspection_date: '2020-03-03', overall_effectiveness: 2, ungraded_grade: null, framework: 'Schools - S5', latest_visit_date: '2025-05-21', current_grade: 2}
|
||||
- input: ref('int_ofsted_listed')
|
||||
rows: []
|
||||
expect:
|
||||
rows:
|
||||
- {urn: 139888, ofsted_grade: 2, ofsted_date: '2025-05-21'}
|
||||
|
||||
- name: dim_school_carries_inspectorate_and_ofsted_listing
|
||||
description: >
|
||||
Audit H4. GIAS names ISI for Abbey College Cambridge; Ofsted lists Abbas
|
||||
and Templecombe without an inspection; a third school is in neither.
|
||||
model: dim_school
|
||||
given:
|
||||
- input: ref('stg_gias_establishments')
|
||||
rows:
|
||||
- {urn: 136083, school_name: 'Abbey College Cambridge', status_code: 1, school_type_code: 11, local_authority_code: 873, phase_code: 4, inspectorate_name: 'ISI'}
|
||||
- {urn: 150031, school_name: 'Abbas and Templecombe Church School', status_code: 1, school_type_code: 28, local_authority_code: 933, phase_code: 2, inspectorate_name: 'Not applicable'}
|
||||
- {urn: 1, school_name: 'No data school', status_code: 1, school_type_code: 1, local_authority_code: 312, phase_code: 2, inspectorate_name: null}
|
||||
- input: ref('int_ofsted_latest')
|
||||
rows: []
|
||||
- input: ref('int_ofsted_listed')
|
||||
rows:
|
||||
- {urn: 150031}
|
||||
expect:
|
||||
rows:
|
||||
- {urn: 136083, inspectorate: 'ISI', ofsted_listed: false}
|
||||
- {urn: 150031, inspectorate: 'Not applicable', ofsted_listed: true}
|
||||
- {urn: 1, inspectorate: null, ofsted_listed: false}
|
||||
Reference in new issue
Block a user