init CTFd source
This commit is contained in:
12
tests/utils/test_markdown.py
Normal file
12
tests/utils/test_markdown.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from CTFd.utils import markdown
|
||||
|
||||
|
||||
def test_markdown():
|
||||
"""
|
||||
Test that our markdown function renders properly
|
||||
"""
|
||||
# Allow raw HTML / potentially unsafe HTML
|
||||
assert (
|
||||
markdown("<iframe src='https://example.com'></iframe>").strip()
|
||||
== "<iframe src='https://example.com'></iframe>"
|
||||
)
|
||||
Reference in New Issue
Block a user