You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2026/10/01 23:51:14 UTC

(superset) branch master updated: fix(mcp): use DEFAULT_PAGE_SIZE constant in list_charts test (#44786)

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

rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 2c72d4d4fee fix(mcp): use DEFAULT_PAGE_SIZE constant in list_charts test (#44786)
2c72d4d4fee is described below

commit 2c72d4d4fee83b03a07d87dc8c4402b24db153cb
Author: Viktor Högberg <11...@users.noreply.github.com>
AuthorDate: Fri Oct 2 01:51:04 2026 +0200

    fix(mcp): use DEFAULT_PAGE_SIZE constant in list_charts test (#44786)
---
 tests/unit_tests/mcp_service/chart/tool/test_list_charts.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/unit_tests/mcp_service/chart/tool/test_list_charts.py b/tests/unit_tests/mcp_service/chart/tool/test_list_charts.py
index 05a0e936ffb..6243ae7448b 100644
--- a/tests/unit_tests/mcp_service/chart/tool/test_list_charts.py
+++ b/tests/unit_tests/mcp_service/chart/tool/test_list_charts.py
@@ -32,7 +32,7 @@ from superset.mcp_service.chart.schemas import (
     ChartFilter,
     ListChartsRequest,
 )
-from superset.mcp_service.constants import MAX_PAGE_SIZE
+from superset.mcp_service.constants import DEFAULT_PAGE_SIZE, MAX_PAGE_SIZE
 from superset.mcp_service.privacy import (
     DATA_MODEL_METADATA_ERROR_TYPE,
     remove_chart_data_model_columns,
@@ -109,7 +109,7 @@ class TestListChartsRequestSchema:
         assert request.order_column is None
         assert request.order_direction == "asc"
         assert request.page == 1
-        assert request.page_size == 10
+        assert request.page_size == DEFAULT_PAGE_SIZE
 
     def test_request_with_filters(self):
         """Test creating request with filters."""