Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Replace canonical tests with comments
  • Loading branch information
xenova committed May 1, 2023
commit 5e6298202ebf58b09198ba3a9bf2947146c5d75b
32 changes: 19 additions & 13 deletions tests/test_convert_md_to_mdx.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,14 @@ def test_convert_include(self):
path = Path(__file__).resolve()
page_info = {"path": path}

# test canonical
text = """<include>
{"path": "./data/convert_include_dummy.txt",
"start-after": "START header_1",
"end-before": "END header_1"}
</include>"""
# canonical test:
# <include>
# {
# "path": "./data/convert_include_dummy.txt",
# "start-after": "START header_1",
# "end-before": "END header_1"
# }
# </include>

# test entire file
text = """<include>
Expand Down Expand Up @@ -189,13 +191,17 @@ def test_convert_include(self):
def test_convert_literalinclude(self):
path = Path(__file__).resolve()
page_info = {"path": path}
# test canonical
text = """<literalinclude>
{"path": "./data/convert_literalinclude_dummy.txt",
"language": "python",
"start-after": "START python_import",
"end-before": "END python_import"}
</literalinclude>"""

# canonical test:
# <literalinclude>
# {
# "path": "./data/convert_literalinclude_dummy.txt",
# "language": "python",
# "start-after": "START python_import",
# "end-before": "END python_import"
# }
# </literalinclude>

# test entire file
text = """<literalinclude>
{"path": "./data/convert_literalinclude_dummy.txt",
Expand Down