From c5b18e1a2c7371df4d574b5fb4229c95fbdd3eb5 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 4 Feb 2016 09:04:35 +0000 Subject: Extract common code for reading styles --- tests/docx/body_xml_tests.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/docx/body_xml_tests.py b/tests/docx/body_xml_tests.py index 2d6644c..63ec33d 100644 --- a/tests/docx/body_xml_tests.py +++ b/tests/docx/body_xml_tests.py @@ -552,6 +552,9 @@ def _read_document_xml_element(element, *args, **kwargs): class FakeStyles(object): def find_paragraph_style_by_id(self, style_id): return Style(style_id, style_id) + + def find_character_style_by_id(self, style_id): + return None def _document_element_with_text(text): return xml_element("w:document", {}, [ -- cgit v1.2.3