Skip to content

Commit

Permalink
fix: Correct assertions in snowflake test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias committed Mar 26, 2024
1 parent fafa0eb commit 83eb00e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,8 @@ async def insert_into_snowflake_activity_mocked(_: SnowflakeInsertInputs) -> str
run = runs[0]
assert run.status == "FailedRetryable"
assert run.latest_error == "ValueError: A useful error message"
assert run.records_completed == 0
assert run.records_completed is None
assert run.records_total_count == 1


async def test_snowflake_export_workflow_handles_insert_activity_non_retryable_errors(ateam, snowflake_batch_export):
Expand Down Expand Up @@ -744,6 +745,8 @@ class ForbiddenError(Exception):
run = runs[0]
assert run.status == "Failed"
assert run.latest_error == "ForbiddenError: A useful error message"
assert run.records_completed is None
assert run.records_total_count == 1


async def test_snowflake_export_workflow_handles_cancellation_mocked(ateam, snowflake_batch_export):
Expand Down

0 comments on commit 83eb00e

Please sign in to comment.