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 d72679e4fe1 Add number of queries guard in public providers list 
endpoints (#57635)
d72679e4fe1 is described below

commit d72679e4fe18787ba3c49f3b4c4636047da96c78
Author: Pierre Jeambrun <[email protected]>
AuthorDate: Fri Oct 31 19:25:38 2025 +0100

    Add number of queries guard in public providers list endpoints (#57635)
---
 .../tests/unit/api_fastapi/core_api/routes/public/test_providers.py  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_providers.py 
b/airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_providers.py
index 15a2b68b9c0..cb160375578 100644
--- 
a/airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_providers.py
+++ 
b/airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_providers.py
@@ -22,6 +22,8 @@ import pytest
 
 from airflow.providers_manager import ProviderInfo
 
+from tests_common.test_utils.asserts import assert_queries_count
+
 pytestmark = pytest.mark.db_test
 
 MOCK_PROVIDERS = {
@@ -64,7 +66,8 @@ class TestGetProviders:
     def test_should_respond_200(
         self, mock_provider, test_client, query_params, 
expected_total_entries, expected_package_name
     ):
-        response = test_client.get("/providers", params=query_params)
+        with assert_queries_count(0):
+            response = test_client.get("/providers", params=query_params)
 
         assert response.status_code == 200
         body = response.json()

Reply via email to