diff --git a/test_unstructured/partition/html/test_parser.py b/test_unstructured/partition/html/test_parser.py index 37014f18f3..9ca24b0b3c 100644 --- a/test_unstructured/partition/html/test_parser.py +++ b/test_unstructured/partition/html/test_parser.py @@ -1534,14 +1534,14 @@ class DescribeMath: """ @pytest.mark.parametrize("wrapper", ["{}", "{}", "{}"]) - def it_skips_mathml_that_has_no_text_representation_but_not_its_tail(self, wrapper: str): + def it_preserves_presentation_mathml_and_its_tail(self, wrapper: str): html = "
Before {} after.
".format( wrapper.format("x=2") ) div = etree.fromstring(html, html_parser).xpath(".//div")[0] assert isinstance(div.xpath(".//math")[0], Math) - assert [e.text for e in div.iter_elements()] == ["Before after."] + assert [e.text for e in div.iter_elements()] == ["Before x=2 after."] class DescribeRemovedPhrasing: diff --git a/test_unstructured/partition/html/test_partition.py b/test_unstructured/partition/html/test_partition.py index 26379f14ec..00a5472a86 100644 --- a/test_unstructured/partition/html/test_partition.py +++ b/test_unstructured/partition/html/test_partition.py @@ -894,7 +894,7 @@ def test_partition_html_keeps_katex_html_of_unusable_mathml_inside_an_unrecogniz wrapper.format( "Before" ' ' - 'x' + 'x' '" @@ -2223,7 +2223,7 @@ def test_partition_html_keeps_katex_html_when_mathml_is_unusable(): - x + x