Skip to content

Commit 2ea49dc

Browse files
jnothmanpcluo
authored andcommitted
Add tests for Excel styling that were missing (pandas-dev#16313)
1 parent 2d9b36a commit 2ea49dc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pandas/tests/io/formats/test_to_excel.py

+10
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@
3232
('font-family: roman, fantasy', {'font': {'name': 'roman', 'family': 5}}),
3333
# - size
3434
('font-size: 1em', {'font': {'size': 12}}),
35+
('font-size: xx-small', {'font': {'size': 6}}),
36+
('font-size: x-small', {'font': {'size': 7.5}}),
37+
('font-size: small', {'font': {'size': 9.6}}),
38+
('font-size: medium', {'font': {'size': 12}}),
39+
('font-size: large', {'font': {'size': 13.5}}),
40+
('font-size: x-large', {'font': {'size': 18}}),
41+
('font-size: xx-large', {'font': {'size': 24}}),
42+
('font-size: 50%', {'font': {'size': 6}}),
3543
# - bold
3644
('font-weight: 100', {'font': {'bold': False}}),
3745
('font-weight: 200', {'font': {'bold': False}}),
@@ -45,6 +53,8 @@
4553
('font-weight: 800', {'font': {'bold': True}}),
4654
('font-weight: 900', {'font': {'bold': True}}),
4755
# - italic
56+
('font-style: italic', {'font': {'italic': True}}),
57+
('font-style: oblique', {'font': {'italic': True}}),
4858
# - underline
4959
('text-decoration: underline',
5060
{'font': {'underline': 'single'}}),

0 commit comments

Comments
 (0)