From a2d5ef8d5590bfb7d7b038d7753b8d8b2b013ecd Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 17 Dec 2013 20:01:32 +0000 Subject: Test image output from CLI --- tests/cli_tests.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/cli_tests.py b/tests/cli_tests.py index a54349b..c274ce2 100644 --- a/tests/cli_tests.py +++ b/tests/cli_tests.py @@ -27,4 +27,11 @@ def html_is_written_to_file_if_output_file_is_set(): assert_equal(b"", result.output) with open(output_path) as output_file: assert_equal("

Walking on imported air

", output_file.read()) + + +@istest +def inline_images_are_included_in_output_if_writing_to_single_file(): + docx_path = test_path("tiny-picture.docx") + result = _local.run(["mammoth", docx_path]) + assert_equal(b"""

""", result.output) -- cgit v1.2.3