Skip to content

Commit

Permalink
(#1597) summarize warnings at end of test invocations
Browse files Browse the repository at this point in the history
automatic commit by git-black, original commits:
  800355e
  • Loading branch information
drewbanin authored and iknox-fa committed Feb 8, 2022
1 parent c6d8110 commit e41041c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions core/dbt/compilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ def _compiled_type_for(model: ParsedNode):

def print_compile_stats(stats):
names = {
NodeType.Model: 'model',
NodeType.Test: 'test',
NodeType.Snapshot: 'snapshot',
NodeType.Model: "model",
NodeType.Test: "test",
NodeType.Snapshot: "snapshot",
NodeType.Analysis: 'analysis',
NodeType.Macro: 'macro',
NodeType.Operation: 'operation',
NodeType.Seed: 'seed file',
NodeType.Source: 'source',
NodeType.Macro: "macro",
NodeType.Operation: "operation",
NodeType.Seed: "seed file",
NodeType.Source: "source",
NodeType.Exposure: 'exposure',
NodeType.Metric: 'metric'
}
Expand Down
4 changes: 2 additions & 2 deletions core/dbt/task/printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def interpret_run_result(result) -> str:
elif result.status == NodeStatus.Skipped:
return 'skip'
elif result.status == NodeStatus.Warn:
return 'warn'
return "warn"
elif result.status in (NodeStatus.Pass, NodeStatus.Success):
return 'pass'
else:
Expand All @@ -56,7 +56,7 @@ def print_run_status_line(results) -> None:
'error': 0,
'skip': 0,
'pass': 0,
'warn': 0,
"warn": 0,
'total': 0,
}

Expand Down

0 comments on commit e41041c

Please sign in to comment.