Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1""" Enums for the Data Validation Test classes """ 

2 

3from enum import Enum 

4from sdc_etl_libs.sdc_data_validation.data_validation_enums import ValidationTestTypes 

5 

6 

7class ValidationTests(Enum): 

8 column_not_null = { 

9 "test_type": ValidationTestTypes.QUALITY.value, 

10 "group_for_quality_tests": True, 

11 "requires_database_conn": ["sink"], 

12 "lib_path": "sdc_etl_libs.sdc_data_validation.validation_tests.column_not_null", 

13 "class_name": "ColumnNotNull" 

14 } 

15 column_unique = { 

16 "test_type": ValidationTestTypes.QUALITY.value, 

17 "group_for_quality_tests": True, 

18 "requires_database_conn": ["sink"], 

19 "lib_path": "sdc_etl_libs.sdc_data_validation.validation_tests.column_unique", 

20 "class_name": "ColumnUnique" 

21 } 

22 column_check = { 

23 "test_type": ValidationTestTypes.METADATA.value, 

24 "group_for_quality_tests": None, 

25 "requires_database_conn": ["source", "sink"], 

26 "lib_path": "sdc_etl_libs.sdc_data_validation.validation_tests.column_check", 

27 "class_name": "ColumnCheck" 

28 }