Skip to content

Commit

Permalink
Run test_insert_by_period for all targets
Browse files Browse the repository at this point in the history
  • Loading branch information
HorvathDanielMarton committed Sep 1, 2021
1 parent 7c81020 commit f82f2ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{{
config(
materialized = 'view',
enabled=(target.type == 'redshift' or target.type == 'snowflake')
materialized = 'view'
)
}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
period = 'month',
timestamp_field = 'created_at',
start_date = '2018-01-01',
stop_date = '2018-06-01',
enabled=(target.type == 'redshift' or target.type == 'snowflake')
stop_date = '2018-06-01'
)
}}

Expand Down
4 changes: 1 addition & 3 deletions run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ if [[ ! -z $3 ]]; then _seeds="--select $3 --full-refresh"; fi

dbt deps --target $1
dbt seed --target $1 $_seeds
if [ $1 == 'redshift' ]; then
dbt run -x -m test_insert_by_period --full-refresh --target redshift
fi
dbt run -x -m test_insert_by_period --full-refresh --target $1
dbt run -x --target $1 $_models
dbt test -x --target $1 $_models

0 comments on commit f82f2ee

Please sign in to comment.