Skip to content

Commit

Permalink
make tests honor environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Beck committed Dec 4, 2019
1 parent a771c63 commit 714e4af
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{{ config(materialized='table') }}
select 'DBT_TEST_ALT' as warehouse
select '{{ env_var("SNOWFLAKE_TEST_ALT_WAREHOUSE", "DBT_TEST_ALT") }}' as warehouse
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{{ config(snowflake_warehouse='DBT_TEST_ALT', materialized='table') }}
{{ config(snowflake_warehouse=env_var('SNOWFLAKE_TEST_ALT_WAREHOUSE', 'DBT_TEST_ALT'), materialized='table') }}
select current_warehouse() as warehouse
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{{ config(materialized='table') }}
select 'DBT_TEST_ALT' as warehouse
select '{{ env_var("SNOWFLAKE_TEST_ALT_WAREHOUSE", "DBT_TEST_ALT") }}' as warehouse
2 changes: 1 addition & 1 deletion test/integration/050_warehouse_test/test_warehouses.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def project_config(self):
'source-paths': ['project-config-models'],
'models': {
'test': {
'snowflake_warehouse': 'DBT_TEST_ALT',
'snowflake_warehouse': os.getenv('SNOWFLAKE_TEST_ALT_WAREHOUSE', 'DBT_TEST_ALT'),
},
},
}
Expand Down

0 comments on commit 714e4af

Please sign in to comment.