Skip to content

Commit

Permalink
Expect the run to fail with a specific error message
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeatty10 authored Sep 15, 2023
1 parent 909c1cd commit 8aa5d8b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ def models(self):
return {"model.sql": _MODELS__view}

def test_row_values_were_scrubbed_from_duplicate_merge_exception(self, project):
result = run_dbt(["run", "-s", "model"], expect_pass=None)
result = run_dbt(["run", "-s", "model"], expect_pass=False)
assert len(result) == 1
assert "Duplicate field key '[redacted]'" in result[0].message

0 comments on commit 8aa5d8b

Please sign in to comment.