Skip to content

Commit 8f049b8

Browse files
committed
test: restore test_html.py
1 parent 9e2c471 commit 8f049b8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/unit/display/test_html.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
{
108108
"array_col": "left",
109109
},
110-
["[1, 2, 3]", "[4, 5, 6]", "[7, 8, 9]"],
110+
["1", "2", "3", "4", "5", "6", "7", "8", "9"],
111111
id="array",
112112
),
113113
pytest.param(
@@ -120,7 +120,7 @@
120120
{
121121
"struct_col": "left",
122122
},
123-
["{'v': 1}", "{'v': 2}", "{'v': 3}"],
123+
["1", "2", "3"],
124124
id="struct",
125125
),
126126
],
@@ -131,9 +131,8 @@ def test_render_html_alignment_and_precision(
131131
df = pd.DataFrame(data)
132132
html = bf_html.render_html(dataframe=df, table_id="test-table")
133133

134-
for _, align in expected_alignments.items():
135-
assert 'th style="text-align: left;"' in html
136-
assert f'<td style="text-align: {align};' in html
134+
for align in expected_alignments.values():
135+
assert f'class="cell-align-{align}"' in html
137136

138137
for expected_string in expected_strings:
139138
assert expected_string in html

0 commit comments

Comments
 (0)