Display method docstrings on the dashboard (#270)

Collapsed with <details> because they can be pretty long and make the table
harder to read.
This commit is contained in:
Val Lorentz 2024-04-19 15:15:27 +02:00 committed by GitHub
parent 7f9b4b315f
commit ce51dddc15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -246,7 +246,13 @@ def build_test_table(
row_anchor = md5sum(row_anchor)
row = HTML.tr(
HTML.th(HTML.a(test_name, href=f"#{row_anchor}"), class_="test-name"),
HTML.th(
HTML.details(
HTML.summary(HTML.a(test_name, href=f"#{row_anchor}")),
docstring(getattr(getattr(module, class_name), test_name)),
),
class_="test-name",
),
id=row_anchor,
)
rows.append(row)