File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed
unit_tests/sources/declarative/retrievers Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change 1313 AirbyteStateType ,
1414 AirbyteStreamState ,
1515 ConfiguredAirbyteCatalog ,
16+ ConfiguredAirbyteStream ,
17+ DestinationSyncMode ,
1618 StreamDescriptor ,
1719 Type ,
1820)
1921from airbyte_cdk .sources .declarative .concurrent_declarative_source import (
2022 ConcurrentDeclarativeSource ,
2123)
22- from airbyte_cdk .sources .embedded .catalog import to_configured_catalog , to_configured_stream
2324from airbyte_cdk .test .mock_http import HttpMocker , HttpRequest , HttpResponse
2425
2526_CONFIG = {"start_date" : "2024-07-01T00:00:00.000Z" }
108109}
109110
110111
112+ def to_configured_stream (
113+ stream ,
114+ sync_mode = None ,
115+ destination_sync_mode = DestinationSyncMode .append ,
116+ cursor_field = None ,
117+ primary_key = None ,
118+ ) -> ConfiguredAirbyteStream :
119+ return ConfiguredAirbyteStream (
120+ stream = stream ,
121+ sync_mode = sync_mode ,
122+ destination_sync_mode = destination_sync_mode ,
123+ cursor_field = cursor_field ,
124+ primary_key = primary_key ,
125+ )
126+
127+
128+ def to_configured_catalog (
129+ configured_streams ,
130+ ) -> ConfiguredAirbyteCatalog :
131+ return ConfiguredAirbyteCatalog (streams = configured_streams )
132+
133+
111134def create_configured_catalog (
112135 source : ConcurrentDeclarativeSource , config : dict
113136) -> ConfiguredAirbyteCatalog :
You can’t perform that action at this time.
0 commit comments