Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Aug 22, 2021
1 parent 72e7ff9 commit 6a87085
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_docutils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from myst_parser.docutils_ import Parser
from myst_parser.docutils_renderer import make_document


def test_parser():
parser = Parser()
document = make_document()
parser.parse("something", document)
assert (
document.pformat().strip()
== '<document source="notset">\n <paragraph>\n something'
)

0 comments on commit 6a87085

Please sign in to comment.