amoghrajesh commented on code in PR #76806:
URL: https://github.com/apache/airflow/pull/76806#discussion_r4546929286


##########
airflow-core/tests/unit/cli/commands/test_dag_command.py:
##########
@@ -1522,6 +1522,17 @@ def test_rejects_multiple_selectors(self, parser, 
extra_args):
         with pytest.raises(SystemExit, match="mutually exclusive"):
             dag_command.dag_clear(args)
 
+    @pytest.mark.usefixtures("seeded_partitioned_runs")
+    @pytest.mark.parametrize(("extra_args", "expected"), [([], False), 
(["--keep-task-state"], True)])
+    @mock.patch("airflow.cli.commands.dag_command._bulk_clear_runs", 
autospec=True, return_value=1)
+    def test_keep_task_state(self, mock_bulk_clear_runs, parser, extra_args, 
expected):

Review Comment:
   Done



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