uranusjr commented on a change in pull request #16030:
URL: https://github.com/apache/airflow/pull/16030#discussion_r643922302
##########
File path: tests/cli/commands/test_task_command.py
##########
@@ -62,6 +62,11 @@ class TestCliTasks(unittest.TestCase):
def setUpClass(cls):
cls.dagbag = DagBag(include_examples=True)
cls.parser = cli_parser.get_parser()
+ clear_db_runs()
+
+ @classmethod
+ def tearDownClass(cls) -> None:
+ clear_db_runs()
Review comment:
I think this should be `tearDown` not `tearDownClass` because we don’t
want the DAG runs to carry over to other tests in the same class.
--
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]