mirror of https://github.com/progval/irctest.git
dashboard: Don't use <details> for tests with no docstring
This commit is contained in:
parent
9f8e712776
commit
1bc8741479
|
@ -245,16 +245,17 @@ def build_test_table(
|
||||||
# TODO: only hash test parameter
|
# TODO: only hash test parameter
|
||||||
row_anchor = md5sum(row_anchor)
|
row_anchor = md5sum(row_anchor)
|
||||||
|
|
||||||
|
doc = docstring(
|
||||||
|
getattr(getattr(module, class_name), test_name.split("[")[0])
|
||||||
|
)
|
||||||
row = HTML.tr(
|
row = HTML.tr(
|
||||||
HTML.th(
|
HTML.th(
|
||||||
HTML.details(
|
HTML.details(
|
||||||
HTML.summary(HTML.a(test_name, href=f"#{row_anchor}")),
|
HTML.summary(HTML.a(test_name, href=f"#{row_anchor}")),
|
||||||
docstring(
|
doc,
|
||||||
getattr(
|
)
|
||||||
getattr(module, class_name), test_name.split("[")[0]
|
if doc
|
||||||
)
|
else HTML.a(test_name, href=f"#{row_anchor}"),
|
||||||
),
|
|
||||||
),
|
|
||||||
class_="test-name",
|
class_="test-name",
|
||||||
),
|
),
|
||||||
id=row_anchor,
|
id=row_anchor,
|
||||||
|
|
Loading…
Reference in New Issue