Skip to content

Commit 0370dd4

Browse files
author
maxwasserman
committed
Added more assertions to test.
1 parent 5930781 commit 0370dd4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pandas/tests/io/formats/test_to_html.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,11 +1869,17 @@ def test_to_html_notebook_has_style(self):
18691869
df = pd.DataFrame({"A": [1, 2, 3]})
18701870
result = df.to_html(notebook=True)
18711871
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
18721875

18731876
def test_to_html_notebook_has_no_style(self):
18741877
df = pd.DataFrame({"A": [1, 2, 3]})
18751878
result = df.to_html()
18761879
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
18771883

18781884
def test_to_html_with_index_names_false(self):
18791885
# gh-16493

0 commit comments

Comments
 (0)