diff --git a/airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_config.py b/airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_config.py index e98ad44bb72ad..56d37c9f8915d 100644 --- a/airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_config.py +++ b/airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_config.py @@ -18,6 +18,7 @@ import pytest +from tests_common.test_utils.asserts import assert_queries_count from tests_common.test_utils.config import conf_vars pytestmark = pytest.mark.db_test @@ -61,7 +62,8 @@ def test_should_response_200(self, mock_config_data, test_client): """ Test the /config endpoint to verify response matches mock data. """ - response = test_client.get("/config") + with assert_queries_count(0): + response = test_client.get("/config") assert response.status_code == 200 assert response.json() == mock_config_response