Skip to content

Commit 72e73ec

Browse files
committed
remove redundant errors check
1 parent 345b3d2 commit 72e73ec

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

airbyte_cdk/test/standard_tests/source_base.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,8 @@ def test_spec(self) -> None:
8181
test_scenario=None,
8282
connector=self.create_connector(scenario=None),
8383
)
84-
if result.errors:
85-
raise AssertionError(
86-
f"Expected no errors but got {len(result.errors)}: \n"
87-
+ "\n".join([str(e) for e in result.errors])
88-
)
84+
# If an error occurs, it will be raised above.
85+
8986
assert len(result.spec_messages) == 1, (
9087
"Expected exactly 1 spec message but got {len(result.spec_messages)}",
9188
result.errors,

0 commit comments

Comments
 (0)