Shawnsuun commented on code in PR #74383:
URL: https://github.com/apache/airflow/pull/74383#discussion_r4308626345


##########
airflow-ctl/tests/airflow_ctl/ctl/test_cli_config.py:
##########
@@ -1116,3 +1126,26 @@ def 
test_nested_single_key_list_is_not_split_into_rows(self, api_client_maker, c
         rows = json.loads(capsys.readouterr().out)
         assert [row["dag_run_id"] for row in rows] == ["manual_run"]
         assert rows[0]["conf"] == ["a", "b"]
+
+    @pytest.mark.parametrize(
+        ("extra_argv", "expected_body"),
+        [
+            pytest.param([], DAGPatchBody(), 
id="omitted-flag-does-not-unpause"),
+            pytest.param(
+                ["--scheduling-state", "paused"],
+                DAGPatchBody(scheduling_state=DagSchedulingState.PAUSED),
+                id="scheduling-state-alone",
+            ),
+        ],
+    )

Review Comment:
   Good idea, added both explicit-flag cases so the test also pins that 
`--is-paused` / `--no-is-paused` still send the value. Thanks for the review!
   
   ---
   Drafted-by: GitHub Copilot (Claude Opus 5.5) (no human review before posting)



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