From a775882bd4778db36877a09237e32ed4c14770f3 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Wed, 7 Oct 2026 20:11:46 -0400 Subject: [PATCH] test(docker): a plugin template can take its own name; the overview's assertions follow its new tables (#5299, #5302) render_plugin_template's first three arguments are positional-only, so the service page's own `name` reaches the template. The overview names a service rather than its replica containers, and a stack chip keeps the search it was clicked under. Co-Authored-By: Claude Opus 5.5 --- tests/_templates.py | 2 +- tests/integration/test_docker_service_page.py | 3 ++- tests/integration/test_mcp_plugin_tools.py | 7 +++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/_templates.py b/tests/_templates.py index ef1e173..035f8b8 100644 --- a/tests/_templates.py +++ b/tests/_templates.py @@ -16,7 +16,7 @@ def template_files() -> list[pathlib.Path]: return sorted(p for root in roots for p in root.rglob("*.html")) -async def render_plugin_template(app, plugin: str, name: str, **ctx) -> str: +async def render_plugin_template(app, plugin: str, name: str, /, **ctx) -> str: """Render plugins//templates/ with quart.render_template, whether or not the plugin is enabled in this app: the plugin's template folder goes ahead of the app's loader for the one render. Call inside diff --git a/tests/integration/test_docker_service_page.py b/tests/integration/test_docker_service_page.py index 079c59c..e3814a1 100644 --- a/tests/integration/test_docker_service_page.py +++ b/tests/integration/test_docker_service_page.py @@ -136,6 +136,7 @@ def test_a_service_page_reads_every_task(app): rows = got["rows"][1] assert f'href="/plugins/docker/service/{name}"' in rows - assert f'