fix(plugin): align plugin list endpoint counts with live endpoint state (#37179)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
呆萌闷油瓶
2026-06-10 08:11:11 +00:00
committed by GitHub
co-authored by autofix-ci[bot]
parent 4fb3210f9a
commit 9ac71329a4
10 changed files with 345 additions and 23 deletions
@@ -131,11 +131,15 @@ class TestPluginListApi:
with (
app.test_request_context("/?page=1&page_size=10"),
patch("controllers.console.workspace.plugin.PluginService.list_with_total", return_value=mock_list),
patch(
"controllers.console.workspace.plugin.PluginService.list_with_total",
return_value=mock_list,
) as mock_list_with_total,
):
result = method(api, "t1")
result = method(api, "t1", "u1")
assert result["total"] == 1
mock_list_with_total.assert_called_once_with("t1", "u1", 1, 10)
class TestPluginIconApi: