Skip to content

Commit 08a1c22

Browse files
committed
fix sync mode
1 parent a1eceaa commit 08a1c22

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

airbyte_cdk/test/standard_tests/docker_base.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
ConfiguredAirbyteCatalog,
2424
ConfiguredAirbyteStream,
2525
DestinationSyncMode,
26+
SyncMode,
2627
)
2728
from airbyte_cdk.models.airbyte_protocol_serializers import (
2829
AirbyteCatalogSerializer,
@@ -337,7 +338,11 @@ def test_docker_image_build_and_read(
337338
streams=[
338339
ConfiguredAirbyteStream(
339340
stream=stream,
340-
sync_mode=stream.supported_sync_modes[0],
341+
sync_mode=(
342+
stream.supported_sync_modes[0]
343+
if stream.supported_sync_modes
344+
else SyncMode.full_refresh
345+
),
341346
destination_sync_mode=DestinationSyncMode.append,
342347
)
343348
for stream in discovered_catalog.streams

0 commit comments

Comments
 (0)