Skip to content

Commit c524c56

Browse files
committed
add "mathjax_ignore" on existing tests
1 parent 35047ad commit c524c56

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

pandas/tests/io/formats/style/test_style.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,9 +488,11 @@ def test_repr_html_ok(self, styler):
488488
def test_repr_html_mathjax(self, styler):
489489
# gh-19824 / 41395
490490
assert "tex2jax_ignore" not in styler._repr_html_()
491+
assert "mathjax_ignore" not in styler._repr_html_()
491492

492493
with option_context("styler.html.mathjax", False):
493494
assert "tex2jax_ignore" in styler._repr_html_()
495+
assert "mathjax_ignore" in styler._repr_html_()
494496

495497
def test_update_ctx(self, styler):
496498
styler._update_ctx(DataFrame({"A": ["color: red", "color: blue"]}))

pandas/tests/io/formats/test_to_html.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,9 +934,11 @@ def test_repr_html(self, float_frame):
934934
def test_repr_html_mathjax(self):
935935
df = DataFrame([[1, 2], [3, 4]])
936936
assert "tex2jax_ignore" not in df._repr_html_()
937+
assert "mathjax_ignore" not in df._repr_html_()
937938

938939
with option_context("display.html.use_mathjax", False):
939940
assert "tex2jax_ignore" in df._repr_html_()
941+
assert "mathjax_ignore" in df._repr_html_()
940942

941943
def test_repr_html_wide(self):
942944
max_cols = 20

0 commit comments

Comments
 (0)