mik-laj commented on a change in pull request #6993: [AIRFLOW-4502] new cli 
command - task_states_for_dag_run
URL: https://github.com/apache/airflow/pull/6993#discussion_r363566924
 
 

 ##########
 File path: tests/cli/commands/test_task_command.py
 ##########
 @@ -184,6 +184,20 @@ def test_task_state(self):
             'tasks', 'state', 'example_bash_operator', 'runme_0',
             DEFAULT_DATE.isoformat()]))
 
+    def test_task_states_for_dag_run(self):
+        with redirect_stdout(io.StringIO()) as stdout:
+            task_command.task_states_for_dag_run(self.parser.parse_args([
+                'tasks', 'states_for_dag_run', 'example_bash_operator', 
DEFAULT_DATE.isoformat()]))
+
+        # can't get perfect match as start/end date are variable
 
 Review comment:
   I think you should save this data to the database in the code of test, and 
then the data will be constant.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to