Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
lgiordani committed Apr 28, 2024
1 parent 1f3434b commit d287277
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.pdm-python
pdm.lock

poetry.lock
23 changes: 15 additions & 8 deletions pelican/plugins/mau_reader/test_mau_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,23 @@ def test_article_with_mau_extension():
settings = get_settings()

settings["MAU"] = {
"header_anchor_function": header_anchor,
"custom_templates": {
"header.html": (
'<h{{ level }} id="ANCHOR">'
"{{ value }}"
'{% if anchor %}<a href="#ANCHOR">¶</a>{% endif %}'
"</h{{ level }}>"
)
"mau": {
"parser": {
"header_anchor_function": header_anchor,
},
"visitor": {
"custom_templates": {
"header.html": (
'<h{{ level }} id="ANCHOR">'
"{{ value }}"
'{% if anchor %}<a href="#ANCHOR">¶</a>{% endif %}'
"</h{{ level }}>"
)
}
},
},
}

mau_reader = MauReader(settings)

source_path = os.path.join(TEST_CONTENT_PATH, "article_with_content.mau")
Expand Down

0 comments on commit d287277

Please sign in to comment.