84
84
'patternType' : 'solid' }}),
85
85
# BORDER
86
86
# - style
87
- # TODO: need to check this produces valid OpenXML without color
88
87
('border-style: solid' ,
89
88
{'border' : {'top' : {'style' : 'medium' },
90
89
'bottom' : {'style' : 'medium' },
96
95
{'border' : {'top' : {'style' : 'mediumDashDotDot' }}}),
97
96
('border-top-style: dashed' ,
98
97
{'border' : {'top' : {'style' : 'mediumDashed' }}}),
98
+ # TODO: test other widths
99
99
# - color
100
+ # TODO
100
101
# ALIGNMENT
101
102
# - horizontal
103
+ # TODO
102
104
# - vertical
105
+ # TODO
103
106
# - wrap_text
107
+ # TODO
104
108
])
105
109
def test_css_to_excel (css , expected ):
106
110
convert = CSSToExcelConverter ()
@@ -117,10 +121,10 @@ def test_css_to_excel_multiple():
117
121
unused: something;
118
122
''' )
119
123
assert {"font" : {"bold" : True },
120
- "border" : {"top" : {"style" : "hair " },
121
- "right" : {"style" : "hair " },
122
- "bottom" : {"style" : "hair " },
123
- "left" : {"style" : "hair " }},
124
+ "border" : {"top" : {"style" : "thin " },
125
+ "right" : {"style" : "thin " },
126
+ "bottom" : {"style" : "thin " },
127
+ "left" : {"style" : "thin " }},
124
128
"alignment" : {"horizontal" : "center" ,
125
129
"vertical" : "top" }} == actual
126
130
@@ -145,4 +149,4 @@ def test_css_to_excel_inherited(css, inherited, expected):
145
149
146
150
@pytest .mark .xfail
147
151
def test_css_to_excel_warns_when_not_supported ():
148
- pass
152
+ pass # TODO
0 commit comments