Skip to content

Commit

Permalink
fix bad escape sequence in test strings
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamd committed Jan 6, 2022
1 parent 94caa94 commit e948bff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mkdocs_bibtex/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ def test_unescape_for_arithmatex(self):

self.plugin.unescape_for_arithmatex = True
self.assertIn(
"First Author and Second Author\. Test Title (TT)\. *Testing Journal (TJ)*, 2019",
"First Author and Second Author\\. Test Title (TT)\\. *Testing Journal (TJ)*, 2019",
self.plugin.format_citations(test_data.entries.items())["test"],
)

self.plugin.unescape_for_arithmatex = False
self.assertIn(
"First Author and Second Author\. Test Title \(TT\)\. *Testing Journal \(TJ\)*, 2019",
"First Author and Second Author\\. Test Title \\(TT\\)\\. *Testing Journal \\(TJ\\)*, 2019",
self.plugin.format_citations(test_data.entries.items())["test"],
)

Expand Down Expand Up @@ -98,6 +98,6 @@ def test_on_page_markdown(self):
test_markdown = "This is a citation. [@test]\n\n \\bibliography"

self.assertIn(
"[^1]: First Author and Second Author\. Test title\. *Testing Journal*, 2019\.",
"[^1]: First Author and Second Author\\. Test title\\. *Testing Journal*, 2019\\.",
self.plugin.on_page_markdown(test_markdown, None, None, None),
)

0 comments on commit e948bff

Please sign in to comment.