Skip to content

Commit

Permalink
Fix TestMicrobatchMultipleRetries and `TestMicrobatchSecondBatchFai…
Browse files Browse the repository at this point in the history
…lure` tests
  • Loading branch information
QMalcolm committed Dec 10, 2024
1 parent dd537fb commit ad566ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/functional/microbatch/test_microbatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ def models(self):
def test_run_with_event_time(self, project):
# run all partitions from start - 2 expected rows in output, one failed
with patch_microbatch_end_time("2020-01-03 13:57:00"):
_, console_output = run_dbt_and_capture(["run"])
_, console_output = run_dbt_and_capture(["run"], expect_pass=False)

assert "PARTIAL SUCCESS (2/3)" in console_output
assert "Completed with 1 partial success" in console_output
Expand Down Expand Up @@ -751,7 +751,7 @@ def test_run_with_event_time(self, project):

# run all partitions from start - 2 expected rows in output, one failed
with patch_microbatch_end_time("2020-01-03 13:57:00"):
run_dbt(["run"], callbacks=[event_catcher.catch])
run_dbt(["run"], expect_pass=False, callbacks=[event_catcher.catch])
assert len(event_catcher.caught_events) == 1
self.assert_row_count(project, "microbatch_model", 2)

Expand Down

0 comments on commit ad566ba

Please sign in to comment.