maahir22 commented on code in PR #30432:
URL: https://github.com/apache/airflow/pull/30432#discussion_r1160018754


##########
tests/cli/commands/test_dag_command.py:
##########
@@ -470,6 +470,52 @@ def test_cli_report(self):
         assert "airflow/example_dags/example_complex.py" in out
         assert "example_complex" in out
 
+    @conf_vars({("core", "load_examples"): "true"})
+    def test_cli_get_dag_details(self):
+        args = self.parser.parse_args(["dags", "details", "example_complex", 
"--output", "yaml"])
+        with contextlib.redirect_stdout(io.StringIO()) as temp_stdout:
+            dag_command.dag_details(args)
+            out = temp_stdout.getvalue()
+
+        # Check if DAG Details field are present
+        dag_details_fields = [

Review Comment:
   Got it, I'll check all the attributes - don't get the "they should also 
likely be sorted part", do we want to display the command attributes in sorted 
order & test if the same order is maintained? Is there a reason behind doing 
this as it follows the same order as the REST Client response.



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