jscheffl commented on code in PR #57320:
URL: https://github.com/apache/airflow/pull/57320#discussion_r2484564904


##########
airflow-core/tests/unit/cli/commands/test_task_command.py:
##########
@@ -349,7 +349,8 @@ def test_task_state(self):
         )
 
     def test_task_states_for_dag_run(self):
-        dag2 = DagBag().dags["example_python_operator"]
+        from airflow.providers.standard.example_dags.example_python_operator 
import dag as dag2

Review Comment:
   That looks OK but is a hard wiring from core to standard provider. Have no 
better idea but smells a bit "not good".
   
   Might we need a fixture on a general level allowing dags to load w/o 
tainting individual tests with hard-wired dependencies?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to