turbaszek commented on a change in pull request #9556:
URL: https://github.com/apache/airflow/pull/9556#discussion_r448833504



##########
File path: tests/api_connexion/endpoints/test_dag_run_endpoint.py
##########
@@ -346,6 +346,243 @@ def test_end_date_gte_lte(self, url, 
expected_dag_run_ids, session):
         self.assertEqual(dag_run_ids, expected_dag_run_ids)
 
 
+class TestGetDagRunBatch(TestDagRunEndpoint):
+    @provide_session
+    def test_should_respond_200(self, session):
+        dag_runs = self._create_test_dag_run()
+        session.add_all(dag_runs)
+        session.commit()

Review comment:
       ```suggestion
   
       def test_should_respond_200(self):
           dag_runs = self._create_test_dag_run()
           with create_session() as session:
               session.add_all(dag_runs)
   ```
   WDYT?




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