diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-02-07 18:55:24 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-02-07 18:55:24 +0000 |
| commit | 57eddaefd1961884cddbaf427459822ad8811aeb (patch) | |
| tree | 1693604dfbd460f861227915b9734a4b9ebeb3eb /tests/mammoth_tests.py | |
| parent | e0b022e52d720758023bb0248ea0a17a4cbbb822 (diff) | |
Add scaffolding for markdown
Diffstat (limited to 'tests/mammoth_tests.py')
| -rw-r--r-- | tests/mammoth_tests.py | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ -99,6 +99,14 @@ def transform_document_is_applied_to_document_before_conversion(): @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: result = mammoth.extract_raw_text(fileobj=fileobj) |
