From d3c919e0f5d233f45c66ddba561c7aee73cd1dce Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Fri, 19 Apr 2024 15:16:36 +0200 Subject: [PATCH] dashboard: Fix for parametrized tests --- irctest/dashboard/format.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/irctest/dashboard/format.py b/irctest/dashboard/format.py index 5006e94..b8d286b 100644 --- a/irctest/dashboard/format.py +++ b/irctest/dashboard/format.py @@ -249,7 +249,11 @@ def build_test_table( HTML.th( HTML.details( HTML.summary(HTML.a(test_name, href=f"#{row_anchor}")), - docstring(getattr(getattr(module, class_name), test_name)), + docstring( + getattr( + getattr(module, class_name), test_name.split("[")[0] + ) + ), ), class_="test-name", ),