Skip to content

Commit

Permalink
Align with order of unit test output when actual differs from `expe…
Browse files Browse the repository at this point in the history
…cted`
  • Loading branch information
dbeatty10 authored Jan 18, 2024
1 parent 0da5dfe commit 0d72fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/dbt/task/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def execute_unit_test(
if daff_diff.hasDifference():
should_error = True
rendered = self._render_daff_diff(daff_diff)
rendered = f"\n\n{red('expected')} differs from {green('actual')}:\n\n{rendered}\n"
rendered = f"\n\n{green('actual')} differs from {red('expected')}:\n\n{rendered}\n"

Check warning on line 235 in core/dbt/task/test.py

View check run for this annotation

Codecov / codecov/patch

core/dbt/task/test.py#L235

Added line #L235 was not covered by tests

diff = UnitTestDiff(
actual=json_rows_from_table(actual),
Expand Down

0 comments on commit 0d72fd3

Please sign in to comment.