From 57eddaefd1961884cddbaf427459822ad8811aeb Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 7 Feb 2015 18:55:24 +0000 Subject: Add scaffolding for markdown --- tests/mammoth_tests.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/mammoth_tests.py') diff --git a/tests/mammoth_tests.py b/tests/mammoth_tests.py index c5f2557..ce76221 100644 --- a/tests/mammoth_tests.py +++ b/tests/mammoth_tests.py @@ -98,6 +98,14 @@ def transform_document_is_applied_to_document_before_conversion(): assert_equal([], result.messages) +@istest +def docx_containing_one_paragraph_can_be_converted_to_markdown(): + with open(test_path("single-paragraph.docx"), "rb") as fileobj: + result = mammoth.convert_to_markdown(fileobj=fileobj) + assert_equal("Walking on imported air\n\n", result.value) + assert_equal([], result.messages) + + @istest def can_extract_raw_text(): with open(test_path("simple-list.docx"), "rb") as fileobj: -- cgit v1.2.3