From a6b696fdda0ee6ead2bd6aa0ef247fb0ee5740d8 Mon Sep 17 00:00:00 2001 From: clausherther Date: Tue, 24 Nov 2020 13:58:33 -0700 Subject: [PATCH] Deprecate seed test data --- integration_tests/data/data_test.csv | 5 ----- integration_tests/dbt_project.yml | 4 ---- .../models/schema_tests/data_test.sql | 19 +++++++++++++++++++ .../models/schema_tests/schema.yml | 2 +- integration_tests/test.sh | 2 -- 5 files changed, 20 insertions(+), 12 deletions(-) delete mode 100644 integration_tests/data/data_test.csv create mode 100644 integration_tests/models/schema_tests/data_test.sql diff --git a/integration_tests/data/data_test.csv b/integration_tests/data/data_test.csv deleted file mode 100644 index 02d1268..0000000 --- a/integration_tests/data/data_test.csv +++ /dev/null @@ -1,5 +0,0 @@ -idx,date_col,col_numeric_a,col_numeric_b,col_string_a,col_string_b,col_null -1,2020-10-21,0,1,a,b, -2,2020-10-22,1,0,b,ab, -3,2020-10-23,0.5,0.5,c,abc, -4,2020-10-23,0.5,0.5,c,abcd, diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index 5b5e581..a092088 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -29,9 +29,5 @@ quoting: identifier: false schema: false -seeds: - +quote_columns: false - schema: dbt_expectations_integration_tests - models: schema: dbt_expectations_integration_tests diff --git a/integration_tests/models/schema_tests/data_test.sql b/integration_tests/models/schema_tests/data_test.sql new file mode 100644 index 0000000..b9600c8 --- /dev/null +++ b/integration_tests/models/schema_tests/data_test.sql @@ -0,0 +1,19 @@ + +{{ + config( + materialized = 'view' + ) +}} +select 1 as idx, '2020-10-21' as date_col, cast(0 as {{ dbt_utils.type_float() }}) as col_numeric_a, cast(1 as {{ dbt_utils.type_float() }}) as col_numeric_b, 'a' as col_string_a, 'b' as col_string_b, null as col_null + +union all + +select 2 as idx, '2020-10-22' as date_col, 1 as col_numeric_a, 0 as col_numeric_b, 'b' as col_string_a, 'ab' as col_string_b, null as col_null + +union all + +select 3 as idx, '2020-10-23' as date_col, 0.5 as col_numeric_a, 0.5 as col_numeric_b, 'c' as col_string_a, 'abc' as col_string_b, null as col_null + +union all + +select 4 as idx, '2020-10-23' as date_col, 0.5 as col_numeric_a, 0.5 as col_numeric_b, 'c' as col_string_a, 'abcd' as col_string_b, null as col_null diff --git a/integration_tests/models/schema_tests/schema.yml b/integration_tests/models/schema_tests/schema.yml index 70fe269..b2302c1 100644 --- a/integration_tests/models/schema_tests/schema.yml +++ b/integration_tests/models/schema_tests/schema.yml @@ -55,7 +55,7 @@ models: take_logs: false -seeds: +# seeds: - name: data_test tests: - dbt_expectations.expect_compound_columns_to_be_unique: diff --git a/integration_tests/test.sh b/integration_tests/test.sh index eb3a9dd..462c2a4 100644 --- a/integration_tests/test.sh +++ b/integration_tests/test.sh @@ -1,6 +1,4 @@ -dbt seed --target bq && dbt run --target bq && dbt test --target bq && -dbt seed --target snowflake && dbt run --target snowflake && dbt test --target snowflake &&