ashb commented on PR #22904: URL: https://github.com/apache/airflow/pull/22904#issuecomment-1095450527
``` FAILED tests/jobs/test_backfill_job.py::TestBackfillJob::test_mapped_dag[test_mapped_classic-DebugExecutor] - RuntimeError: Cannot check for mapped_dependants when not attached to a DAG ========================================================================================================================== 1 failed, 1 passed, 46 deselected, 18 warnings in 19.09s ========================================================================================================================== ~/code/airflow/airflow fix-mapping-removed-tasks-bug* 20s airflow ❯ git di [20:07] [1] !10947 diff --git a/tests/dags/test_mapped_classic.py b/tests/dags/test_mapped_classic.py index 3880cc74f..9759b4c39 100644 --- a/tests/dags/test_mapped_classic.py +++ b/tests/dags/test_mapped_classic.py @@ -32,3 +32,4 @@ def consumer(value): with DAG(dag_id='test_mapped_classic', start_date=days_ago(2)) as dag: PythonOperator.partial(task_id='consumer', python_callable=consumer).expand(op_args=make_arg_lists()) + PythonOperator.partial(task_id='consumer_literal', python_callable=consumer).expand(op_args=[[1],[2],[3]]) diff --git a/tests/dags/test_mapped_taskflow.py b/tests/dags/test_mapped_taskflow.py index 34f6ae3d7..31c132f7c 100644 --- a/tests/dags/test_mapped_taskflow.py +++ b/tests/dags/test_mapped_taskflow.py @@ -29,3 +29,4 @@ with DAG(dag_id='test_mapped_taskflow', start_date=days_ago(2)) as dag: print(repr(value)) consumer.expand(value=make_list()) + consumer.expand(value=[1,2,3]) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org