Skip to content

Commit 42c8d49

Browse files
committed
fix source-accept test
1 parent 6812ddb commit 42c8d49

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

airbyte-integrations/bases/source-acceptance-test/source_acceptance_test/tests/test_core.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,9 @@ def _validate_records_structure(records: List[AirbyteRecordMessage], configured_
361361
record_fields = set(get_object_structure(record.data))
362362
common_fields = set.intersection(record_fields, schema_pathes)
363363

364-
assert common_fields, f" Record {record} from {record.stream} stream with fields {record_fields} should have some fields mentioned by json schema: {schema_pathes}"
364+
assert (
365+
common_fields
366+
), f" Record {record} from {record.stream} stream with fields {record_fields} should have some fields mentioned by json schema: {schema_pathes}"
365367

366368
@staticmethod
367369
def _validate_schema(records: List[AirbyteRecordMessage], configured_catalog: ConfiguredAirbyteCatalog):

airbyte-integrations/bases/source-acceptance-test/unit_tests/test_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def test_read(schema, record, should_fail):
268268
]
269269
t = _TestBasicRead()
270270
if should_fail:
271-
with pytest.raises(AssertionError, match="stream should have some fields mentioned by json schema"):
271+
with pytest.raises(AssertionError, match="should have some fields mentioned by json schema"):
272272
t.test_read(None, catalog, input_config, [], docker_runner_mock, MagicMock())
273273
else:
274274
t.test_read(None, catalog, input_config, [], docker_runner_mock, MagicMock())

airbyte-integrations/connectors/source-whisky-hunter/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from setuptools import find_packages, setup
77

88
MAIN_REQUIREMENTS = [
9-
"airbyte-cdk~=0.1",
9+
"airbyte-cdk~=0.2",
1010
]
1111

1212
TEST_REQUIREMENTS = [

0 commit comments

Comments
 (0)