mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-06-28 09:50:38 +00:00
1320108703
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
16 lines
485 B
Python
16 lines
485 B
Python
""" style fixes and lookups for templates """
|
|
from django.test import TestCase
|
|
from bookwyrm.templatetags import markdown
|
|
|
|
|
|
class MarkdownTags(TestCase):
|
|
"""lotta different things here"""
|
|
|
|
def test_get_markdown(self):
|
|
"""markdown format data"""
|
|
result = markdown.get_markdown("_hi_")
|
|
self.assertEqual(result, "<p><em>hi</em></p>")
|
|
|
|
result = markdown.get_markdown("<marquee>_hi_</marquee>")
|
|
self.assertEqual(result, "<p><em>hi</em></p>")
|