Skip to content

Commit

Permalink
severity settings for data tests, too
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Beck committed Apr 23, 2019
1 parent 9a00712 commit f8633e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions core/dbt/parser/source_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ def config(self):
if self.node_type == NodeType.Seed:
defaults['materialized'] = 'seed'

if self.node_type == NodeType.Test:
defaults['severity'] = 'ERROR'

active_config = self.load_config_from_active_project()

if self.active_project.project_name == self.own_project.project_name:
Expand Down
2 changes: 1 addition & 1 deletion test/unit/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2253,7 +2253,7 @@ def test__simple_data_test(self):
'nodes': [],
'macros': []
},
config=self.model_config,
config=self.test_config,
path='no_events.sql',
original_file_path='no_events.sql',
root_path=get_os_path('/usr/src/app'),
Expand Down

0 comments on commit f8633e9

Please sign in to comment.