From 1c14ed25d75caf3228a92d8f7292bf0bf040653b Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 20 Aug 2015 20:34:34 +0100 Subject: Fix: cannot read file objects with name attribute --- tests/docx/body_xml_tests.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/docx') diff --git a/tests/docx/body_xml_tests.py b/tests/docx/body_xml_tests.py index 6122706..da662d8 100644 --- a/tests/docx/body_xml_tests.py +++ b/tests/docx/body_xml_tests.py @@ -406,6 +406,7 @@ class ReadXmlElementTests(object): }) files = context.mock() + funk.allows(files).verify("file:///media/hat.png") funk.allows(files).open("file:///media/hat.png").returns(io.BytesIO(image_bytes)) content_types = context.mock() -- cgit v1.2.3