Skip to content

Commit b1cd8af

Browse files
Apply suggestion from @coderabbitai[bot]
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent bfaf62f commit b1cd8af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

airbyte_cdk/test/standard_tests/source_base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,9 @@ def test_basic_read(
146146
connector_root=self.get_connector_root_dir(),
147147
catalog=configured_catalog,
148148
)
149-
if scenario.expect_exception and not result.errors:
149+
if scenario.expected_outcome.expect_exception() and not result.errors:
150150
# By now we should have raised an exception.
151151
raise AssertionError("Expected an error but got none.")
152-
153152
if scenario.expected_outcome.expect_success() and not result.records:
154153
raise AssertionError("Expected records but got none.")
155154

0 commit comments

Comments
 (0)