mik-laj commented on a change in pull request #9072:
URL: https://github.com/apache/airflow/pull/9072#discussion_r432854903



##########
File path: tests/cli/commands/test_dag_command.py
##########
@@ -249,36 +248,41 @@ def test_next_execution(self):
             dr = session.query(DagRun).filter(DagRun.dag_id.in_(dag_ids))
             dr.delete(synchronize_session=False)
 
+        # Test None output
         args = self.parser.parse_args(['dags',
                                        'next_execution',
                                        dag_ids[0]])
-
         with contextlib.redirect_stdout(io.StringIO()) as temp_stdout:
             dag_command.dag_next_execution(args)
             out = temp_stdout.getvalue()
             # `next_execution` function is inapplicable if no execution record 
found
             # It prints `None` in such cases
             self.assertIn("None", out)
 
+        # Test invalid num-executions

Review comment:
       Should we return non-zero exit code on invalid input?




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