papis-extract/tests/test_formatting.py

15 lines
421 B
Python
Raw Normal View History

2023-08-31 19:32:24 +00:00
import chevron
from papis_extract.annotation_data import Markdown
def test_markdown_default():
fmt = Markdown()
assert chevron.render(fmt.string, {
"file": "somefile/somewhere.pdf",
"quote": "I am quote",
"note": "and including note.",
"page": 46,
"tag": "important",
"type": "highlight",
}) == "#important\n> I am quote [p. 46]\n NOTE: and including note."