Skip to content

Commit 4d40bb6

Browse files
committed
updated test_publishes to include text/html format for series
1 parent 446ec80 commit 4d40bb6

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

pandas/tests/io/formats/test_printing.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,13 @@ def test_publishes(self):
132132

133133
df = pd.DataFrame({"A": [1, 2]})
134134
objects = [df["A"], df, df] # dataframe / series
135-
expected_keys = [
136-
{"text/plain", "application/vnd.dataresource+json"},
137-
{"text/plain", "text/html", "application/vnd.dataresource+json"},
138-
]
135+
expected_keys = {"text/plain", "text/html", "application/vnd.dataresource+json"}
139136

140137
opt = pd.option_context("display.html.table_schema", True)
141-
for obj, expected in zip(objects, expected_keys):
138+
for obj in objects:
142139
with opt:
143140
formatted = self.display_formatter.format(obj)
144-
assert set(formatted[0].keys()) == expected
141+
assert set(formatted[0].keys()) == expected_keys
145142

146143
with_latex = pd.option_context("display.latex.repr", True)
147144

0 commit comments

Comments
 (0)