File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1869,11 +1869,17 @@ def test_to_html_notebook_has_style(self):
1869
1869
df = pd .DataFrame ({"A" : [1 , 2 , 3 ]})
1870
1870
result = df .to_html (notebook = True )
1871
1871
assert "tbody tr th:only-of-type" in result
1872
+ assert "vertical-align: middle;" in result
1873
+ assert "thead th" in result
1874
+ assert "text-align: right;" in result
1872
1875
1873
1876
def test_to_html_notebook_has_no_style (self ):
1874
1877
df = pd .DataFrame ({"A" : [1 , 2 , 3 ]})
1875
1878
result = df .to_html ()
1876
1879
assert "tbody tr th:only-of-type" not in result
1880
+ assert "vertical-align: middle;" not in result
1881
+ assert "thead th" not in result
1882
+ assert "text-align: right;" not in result
1877
1883
1878
1884
def test_to_html_with_index_names_false (self ):
1879
1885
# gh-16493
You can’t perform that action at this time.
0 commit comments