Skip to content

Commit 1c9dc2e

Browse files
committed
fix: false-positive failure for reads expected to fail
1 parent beb96e4 commit 1c9dc2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

airbyte_cdk/test/standard_tests/source_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ def test_basic_read(
130130
catalog=configured_catalog,
131131
)
132132

133-
if not result.records:
134-
raise AssertionError("Expected records but got none.") # noqa: TRY003
133+
if scenario.expected_outcome.expect_success() and not result.records:
134+
raise AssertionError("Expected records but got none.")
135135

136136
def test_fail_read_with_bad_catalog(
137137
self,

0 commit comments

Comments
 (0)