You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/09/14 03:11:45 UTC
[GitHub] [airflow] jedcunningham commented on a diff in pull request #26348: Respect max_active_runs for dataset-triggered dags
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org