Skip to content

Commit

Permalink
Deprecate seed test data
Browse files Browse the repository at this point in the history
  • Loading branch information
clausherther committed Nov 24, 2020
1 parent 72e8024 commit a6b696f
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 12 deletions.
5 changes: 0 additions & 5 deletions integration_tests/data/data_test.csv

This file was deleted.

4 changes: 0 additions & 4 deletions integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,5 @@ quoting:
identifier: false
schema: false

seeds:
+quote_columns: false
schema: dbt_expectations_integration_tests

models:
schema: dbt_expectations_integration_tests
19 changes: 19 additions & 0 deletions integration_tests/models/schema_tests/data_test.sql
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion integration_tests/models/schema_tests/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ models:
take_logs: false


seeds:
# seeds:
- name: data_test
tests:
- dbt_expectations.expect_compound_columns_to_be_unique:
Expand Down
2 changes: 0 additions & 2 deletions integration_tests/test.sh
Original file line number Diff line number Diff line change
@@ -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 &&

0 comments on commit a6b696f

Please sign in to comment.