jedcunningham commented on code in PR #26348:
URL: https://github.com/apache/airflow/pull/26348#discussion_r970264948
##########
tests/models/test_dag.py:
##########
@@ -2102,6 +2102,11 @@ def test_schedule_dag_param(self, kwargs):
class TestDagModel:
+ def setup_method(self):
+ clear_db_dags()
+ clear_db_datasets()
+ clear_db_runs()
Review Comment:
```suggestion
def _clean(self):
clear_db_dags()
clear_db_datasets()
clear_db_runs()
def setup_method(self):
self._clean()
def teardown_method(self):
self._clean()
```
Probably worth running this on both setup and teardown.
--
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]