aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-02-04 09:04:35 +0000
committerMichael Williamson <mike@zwobble.org>2016-02-04 13:34:29 +0000
commitc5b18e1a2c7371df4d574b5fb4229c95fbdd3eb5 (patch)
treec85d7f18413b824351c98ceea49993bedf73d3ff /tests
parent6e449db1f143ac198e820610a40765071163d87a (diff)
Extract common code for reading styles
Diffstat (limited to 'tests')
-rw-r--r--tests/docx/body_xml_tests.py3
1 files changed, 3 insertions, 0 deletions
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", {}, [