Skip to content

Commit 6457ba2

Browse files
authored
Merge pull request #2174 from LBHackney-IT/di-447-update-data-quality-tests
Di 447 update data quality tests
2 parents 29f9ed7 + e4fa9df commit 6457ba2

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

scripts/helpers/housing_gx_dq_inputs.py

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,13 @@
3131
partition_keys = ['import_year', 'import_month', 'import_day', 'import_date']
3232

3333
dq_dimensions_map = {
34+
'expect_arr_patch_not_to_be_null': 'COMPLETENESS',
3435
'expect_asset_id_not_to_be_null': 'COMPLETENESS',
3536
'expect_asset_type_not_to_be_null': 'COMPLETENESS',
3637
'expect_asset_type_values_to_be_in_set': 'CONSISTENCY',
3738
'expect_block_ref_no_column_values_to_match_regex': 'ACCURACY',
39+
'expect_co_t_not_to_be_null': 'COMPLETENESS',
40+
'expect_co_t_to_be_between': 'VALIDITY',
3841
'expect_column_value_lengths_to_be_between': 'VALIDITY',
3942
'expect_column_values_to_be_in_set': 'CONSISTENCY',
4043
'expect_column_values_to_be_unique': 'UNIQUENESS',
@@ -47,8 +50,11 @@
4750
'expect_date_of_birth_column_values_to_not_be_null': 'COMPLETENESS',
4851
'expect_date_of_birth_to_be_between': 'VALIDITY',
4952
'expect_description_values_to_be_in_set': 'CONSISTENCY',
53+
'expect_end_of_tenure_date_column_to_be_null': 'COMPLETENESS',
54+
'expect_eo_t_to_be_between': 'VALIDITY',
5055
'expect_estate_ref_no_column_values_to_match_regex': 'ACCURACY',
5156
'expect_first_name_column_value_length': 'ACCURACY',
57+
'expect_firstname_column_value_length': 'ACCURACY',
5258
'expect_is_organisation_column_values_to_not_be_null': 'COMPLETENESS',
5359
'expect_is_organisation_values_to_be_in_set': 'CONSISTENCY',
5460
'expect_llpg_and_prop_ref_column_values_to_be_unique_within_record': 'UNIQUENESS',
@@ -70,36 +76,31 @@
7076
'expect_prop_no_column_values_to_be_unique': 'UNIQUENESS',
7177
'expect_prop_no_column_values_to_not_be_null': 'COMPLETENESS',
7278
'expect_prop_no_no_column_values_to_match_regex': 'ACCURACY',
79+
'expect_prop_ref_column_values_to_be_unique': 'UNIQUENESS',
80+
'expect_prop_ref_not_to_be_null': 'COMPLETENESS',
7381
'expect_property_ref_column_values_to_not_be_null': 'COMPLETENESS',
82+
'expect_rent_group_ref_not_to_be_null': 'COMPLETENESS',
83+
'expect_saff_rent_acc_not_to_be_null': 'COMPLETENESS',
7484
'expect_select_column_values_to_be_unique_within_record': 'UNIQUENESS',
7585
'expect_start_of_tenure_date_column_not_to_be_null': 'COMPLETENESS',
76-
'expect_end_of_tenure_date_column_to_be_null': 'COMPLETENESS',
7786
'expect_sub_type_column_values_to_be_in_set': 'CONSISTENCY',
7887
'expect_sub_type_column_values_to_not_be_null': 'COMPLETENESS',
7988
'expect_surname_column_value_length': 'ACCURACY',
80-
'expect_firstname_column_value_length': 'ACCURACY',
8189
'expect_tag_ref_column_not_to_be_null': 'COMPLETENESS',
90+
'expect_tag_ref_column_values_to_be_unique': 'UNIQUENESS',
91+
'expect_tag_ref_not_to_be_null': 'COMPLETENESS',
8292
'expect_target_id_and_value_column_values_to_be_unique_within_record': 'UNIQUENESS',
8393
'expect_target_id_column_values_to_not_be_null': 'COMPLETENESS',
8494
'expect_target_type_column_values_to_be_in_set': 'CONSISTENCY',
8595
'expect_tenancy_id_and_payment_reference_column_values_to_be_unique_within_record': 'UNIQUENESS',
8696
'expect_tenancy_id_and_property_reference_column_values_to_be_unique_within_record': 'UNIQUENESS',
8797
'expect_tenancy_id_column_not_to_be_null': 'COMPLETENESS',
8898
'expect_tenure_code_column_not_to_be_null': 'COMPLETENESS',
89-
'expect_tenure_type_column_values_to_be_in_set': 'CONSISTENCY',
9099
'expect_tenure_code_values_to_be_in_set': 'CONSISTENCY',
100+
'expect_tenure_not_to_be_null': 'COMPLETENESS',
101+
'expect_tenure_type_column_values_to_be_in_set': 'CONSISTENCY',
102+
'expect_tenure_values_to_be_in_set': 'CONSISTENCY',
91103
'expect_uprn_column_value_lengths_between': 'VALIDITY',
92104
'expect_uprn_column_values_to_match_regex': 'ACCURACY',
93105
'expect_uprn_column_values_to_not_be_null': 'COMPLETENESS',
94-
'expect_uprn_not_to_be_null': 'COMPLETENESS',
95-
'expect_tag_ref_column_values_to_be_unique': 'UNIQUENESS',
96-
'expect_tag_ref_not_to_be_null': 'COMPLETENESS',
97-
'expect_prop_ref_not_to_be_null': 'COMPLETENESS',
98-
'expect_co_t_not_to_be_null': 'COMPLETENESS',
99-
'expect_tenure_not_to_be_null': 'COMPLETENESS',
100-
'expect_saff_rent_acc_not_to_be_null': 'COMPLETENESS',
101-
'expect_rent_group_ref_not_to_be_null': 'COMPLETENESS',
102-
'expect_eo_t_to_be_between': 'VALIDITY',
103-
'expect_co_t_to_be_between': 'VALIDITY',
104-
'expect_prop_ref_column_values_to_be_unique': 'UNIQUENESS',
105-
'expect_arr_patch_not_to_be_null': 'COMPLETENESS'}
106+
'expect_uprn_not_to_be_null': 'COMPLETENESS'}

0 commit comments

Comments
 (0)