From e23712dd527a42d8d73b903df46ef2b38f46ca4d Mon Sep 17 00:00:00 2001 From: Katie Claiborne Date: Tue, 11 Jun 2024 08:51:27 -0400 Subject: [PATCH] add number of contraints to test seed, update equality test based on dbt utils 1.2 release --- .../test_fct_missing_primary_key_tests.csv | 26 +++++++++---------- integration_tests/seeds/tests/tests_seeds.yml | 3 +++ 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/integration_tests/seeds/tests/test_fct_missing_primary_key_tests.csv b/integration_tests/seeds/tests/test_fct_missing_primary_key_tests.csv index 4eacdd1c..d4d2e3da 100644 --- a/integration_tests/seeds/tests/test_fct_missing_primary_key_tests.csv +++ b/integration_tests/seeds/tests/test_fct_missing_primary_key_tests.csv @@ -1,13 +1,13 @@ -resource_name,is_primary_key_tested,number_of_tests_on_model -fct_model_6,FALSE,0 -model_8,FALSE,0 -fct_model_9,FALSE,0 -int_model_5.v1,FALSE,0 -int_model_5.v2,FALSE,0 -int_model_5.v3,FALSE,0 -report_1,FALSE,0 -report_2,FALSE,0 -report_3,FALSE,0 -stg_model_1,FALSE,2 -stg_model_5,FALSE,0 -fct_model_10,FALSE,0 +resource_name,is_primary_key_tested,number_of_tests_on_model,number_of_constraints_on_model +fct_model_6,FALSE,0,0 +model_8,FALSE,0,0 +fct_model_9,FALSE,0,0 +int_model_5.v1,FALSE,0,0 +int_model_5.v2,FALSE,0,0 +int_model_5.v3,FALSE,0,0 +report_1,FALSE,0,0 +report_2,FALSE,0,0 +report_3,FALSE,0,0 +stg_model_1,FALSE,2,0 +stg_model_5,FALSE,0,0 +fct_model_10,FALSE,0,0 diff --git a/integration_tests/seeds/tests/tests_seeds.yml b/integration_tests/seeds/tests/tests_seeds.yml index de480a01..91aeabff 100644 --- a/integration_tests/seeds/tests/tests_seeds.yml +++ b/integration_tests/seeds/tests/tests_seeds.yml @@ -6,6 +6,9 @@ seeds: - dbt_utils.equality: name: equality_fct_missing_primary_key_tests compare_model: ref('fct_missing_primary_key_tests') + exclude_columns: + - resource_type + - model_type - name: test_fct_test_coverage config: