dimberman commented on a change in pull request #10677:
URL: https://github.com/apache/airflow/pull/10677#discussion_r482191652



##########
File path: tests/cli/commands/test_dag_command.py
##########
@@ -139,6 +139,12 @@ def test_show_dag_print(self):
         self.assertIn("graph [label=example_bash_operator labelloc=t 
rankdir=LR]", out)
         self.assertIn("runme_2 -> run_after_loop", out)
 
+    def test_generate_dag_yaml(self):
+        with contextlib.redirect_stdout(io.StringIO()) as temp_stdout:
+            dag_command.generate_pod_yaml(self.parser.parse_args([
+                'dags', 'generate_yaml', '--dag-id', 'example_bash_operator']))
+

Review comment:
       @mik-laj yes I plan to add assertions that a yaml file is created and 
that it's a valid pod.




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

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


Reply via email to