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/cli_tests.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/cli_tests.py') diff --git a/tests/cli_tests.py b/tests/cli_tests.py index f76df45..4728c6b 100644 --- a/tests/cli_tests.py +++ b/tests/cli_tests.py @@ -66,3 +66,11 @@ def style_map_is_used_if_set(): result = _local.run(["mammoth", docx_path, "--style-map", style_map_path]) assert_equal(b"", result.stderr_output) assert_equal(b"Walking on imported air", result.output) + + +@istest +def output_format_markdown_option_generates_markdown_output(): + docx_path = test_path("single-paragraph.docx") + result = _local.run(["mammoth", docx_path, "--output-format=markdown"]) + assert_equal(b"", result.stderr_output) + assert_equal(b"Walking on imported air\n\n", result.output) -- cgit v1.2.3