Unit test for misskey markdown

main
Bob Mottram 2024-08-13 12:45:28 +01:00
parent 693f78bcb8
commit 7c00870679
1 changed files with 11 additions and 0 deletions

View File

@ -6283,6 +6283,17 @@ def _test_markdown_to_html():
print(result)
assert result == expected
markdown = \
'Some text $[jelly.speed=2s Misskey expands the world of the ' + \
'Fediverse]. Some other text.'
expected = \
'Some text <span class="mfm-jelly">Misskey expands the world ' + \
'of the Fediverse</span>. Some other text.'
result = markdown_to_html(markdown)
if result != expected:
print(result)
assert result == expected
def _test_extract_text_fields_from_post():
print('test_extract_text_fields_in_post')