potiuk commented on code in PR #40285:
URL: https://github.com/apache/airflow/pull/40285#discussion_r1644558818


##########
tests/jobs/test_backfill_job.py:
##########
@@ -139,14 +167,14 @@ def test_unfinished_dag_runs_set_to_failed(self, 
dag_maker):
 
         assert State.FAILED == dag_run.state
 
-    def test_dag_run_with_finished_tasks_set_to_success(self, dag_maker):
+    def test_dag_run_with_finished_tasks_set_to_success(self, dag_maker, 
mock_executor):

Review Comment:
   You can set fixture to be autoused for your set of tests: 
https://docs.pytest.org/en/7.1.x/how-to/fixtures.html#autouse-fixtures-fixtures-you-don-t-have-to-request
 - that's the best pattern I think



-- 
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