aboutsummaryrefslogtreecommitdiff
path: root/tests/cli_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cli_tests.py')
-rw-r--r--tests/cli_tests.py8
1 files changed, 8 insertions, 0 deletions
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"<span>Walking on imported air</span>", 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)