Fix note colour in viewer and fix tests

This commit is contained in:
Veronica Berglyd Olsen
2024-04-28 20:08:35 +02:00
parent 17a492444e
commit 22a34be21a
4 changed files with 16 additions and 14 deletions
+2 -2
View File
@@ -702,10 +702,10 @@ def testCoreToHtml_Format(mockGUI):
html.setPreview(True)
assert html._formatSynopsis("synopsis text", True) == (
"<p class='comment'><span class='synopsis'>Synopsis:</span> synopsis text</p>\n"
"<p class='note'><span class='modifier'>Synopsis:</span> synopsis text</p>\n"
)
assert html._formatSynopsis("short text", False) == (
"<p class='comment'><span class='synopsis'>Short Description:</span> short text</p>\n"
"<p class='note'><span class='modifier'>Short Description:</span> short text</p>\n"
)
assert html._formatComments("comment text") == (
"<p class='comment'>comment text</p>\n"