This is an automated email from the ASF dual-hosted git repository.

pierrejeambrun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 26085c39ad5 Add number of queries guard for ui connections (#57869)
26085c39ad5 is described below

commit 26085c39ad5c80a46bb8e75b86912bf4e5a760a9
Author: Pierre Jeambrun <[email protected]>
AuthorDate: Wed Nov 5 17:35:05 2025 +0100

    Add number of queries guard for ui connections (#57869)
---
 .../tests/unit/api_fastapi/core_api/routes/ui/test_connections.py     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_connections.py 
b/airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_connections.py
index 8493f703c95..52b624108eb 100644
--- a/airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_connections.py
+++ b/airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_connections.py
@@ -18,6 +18,7 @@ from __future__ import annotations
 
 import pytest
 
+from tests_common.test_utils.asserts import assert_queries_count
 from tests_common.test_utils.markers import 
skip_if_force_lowest_dependencies_marker
 
 pytestmark = pytest.mark.db_test
@@ -26,7 +27,8 @@ pytestmark = pytest.mark.db_test
 class TestHookMetaData:
     @skip_if_force_lowest_dependencies_marker
     def test_hook_meta_data(self, test_client):
-        response = test_client.get("/connections/hook_meta")
+        with assert_queries_count(0):
+            response = test_client.get("/connections/hook_meta")
         response_data = response.json()
         assert any(hook_data["connection_type"] == "generic" for hook_data in 
response_data)
         assert any(hook_data["connection_type"] == "fs" for hook_data in 
response_data)

Reply via email to