MCPcopy
hub / github.com/dlt-hub/dlt / dag_decomposed

Function dag_decomposed

tests/helpers/airflow_tests/test_airflow_wrapper.py:220–240  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

218
219 @dag(schedule=None, start_date=DEFAULT_DATE, catchup=False, default_args=default_args)
220 def dag_decomposed():
221 nonlocal tasks_list
222 tasks = PipelineTasksGroup(
223 "pipeline_dag_decomposed",
224 local_data_folder=get_test_storage_root(),
225 wipe_local_data=False,
226 )
227
228 # set duckdb to be outside of pipeline folder which is dropped on each task
229 pipeline_dag_decomposed = dlt.pipeline(
230 pipeline_name="pipeline_dag_decomposed",
231 dataset_name="mock_data_" + uniq_id(),
232 destination="duckdb",
233 )
234 tasks_list = tasks.add_run(
235 pipeline_dag_decomposed,
236 mock_data_source(),
237 decompose="serialize",
238 trigger_rule="all_done",
239 retries=0,
240 )
241
242 dag_def = dag_decomposed()
243 assert len(tasks_list) == 3

Callers 1

test_regular_runFunction · 0.85

Calls 6

add_runMethod · 0.95
PipelineTasksGroupClass · 0.90
get_test_storage_rootFunction · 0.90
uniq_idFunction · 0.90
mock_data_sourceFunction · 0.85
pipelineMethod · 0.80

Tested by

no test coverage detected