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

ephraimanierobi pushed a commit to branch v3-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 407b3f422661f8a82637342f1661fd643af49031
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Nov 3 14:21:18 2025 +0100

    [v3-1-test] Add number of queries guard in public providers list endpoints 
(#57635) (#57643)
    
    (cherry picked from commit d72679e4fe18787ba3c49f3b4c4636047da96c78)
    
    Co-authored-by: Pierre Jeambrun <[email protected]>
---
 .../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