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/cli_tests.py | |
| parent | e0b022e52d720758023bb0248ea0a17a4cbbb822 (diff) | |
Add scaffolding for markdown
Diffstat (limited to 'tests/cli_tests.py')
| -rw-r--r-- | tests/cli_tests.py | 8 |
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) |
