Skip to content

Commit de04609

Browse files
author
Jason Ward
committed
refs #29: updated the tests for expected output
1 parent 1b3bb13 commit de04609

File tree

2 files changed

+75
-220
lines changed

2 files changed

+75
-220
lines changed

pydocx/tests/__init__.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -92,29 +92,6 @@ def get_list_style(self, num_id, ilvl):
9292
def _parse_styles(self):
9393
return {}
9494

95-
def head(self):
96-
return ''
97-
98-
def table(self, text):
99-
return '<table>' + text + '</table>'
100-
101-
def ordered_list(self, text, list_style):
102-
list_type_conversions = {
103-
'decimal': 'decimal',
104-
'decimalZero': 'decimal-leading-zero',
105-
'upperRoman': 'upper-roman',
106-
'lowerRoman': 'lower-roman',
107-
'upperLetter': 'upper-alpha',
108-
'lowerLetter': 'lower-alpha',
109-
'ordinal': 'decimal',
110-
'cardinalText': 'decimal',
111-
'ordinalText': 'decimal',
112-
}
113-
return '<ol data-list-type="{list_style}">{text}</ol>'.format(
114-
list_style=list_type_conversions.get(list_style, 'decimal'),
115-
text=text,
116-
)
117-
11895

11996
DEFAULT_NUMBERING_DICT = {
12097
'1': {

0 commit comments

Comments
 (0)