Skip to content

Commit 2ce3b99

Browse files
committed
don't raise on missing error in helper function
1 parent c8dd910 commit 2ce3b99

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

airbyte_cdk/test/standard_tests/_job_runner.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,6 @@ def run_test_job(
148148

149149
return result
150150

151-
# For all other verbs, we assert check that an exception is raised (or not).
152-
if test_scenario.expect_exception:
153-
if not result.errors:
154-
raise AssertionError("Expected exception but got none.")
155-
156-
return result
157-
158151
assert not result.errors, (
159152
f"Expected no errors but got {len(result.errors)}: \n" + _errors_to_str(result)
160153
)

0 commit comments

Comments
 (0)