import pytest from unstructured.partition.html.transformations import remove_empty_tags_from_html_content @pytest.mark.parametrize( ("html_content, expected_output"), # noqa PT006 [ ("
", ""), ("

", "
"), ("
", "
"), ("

", "

"), ('

', '

'), ("

Content

", "

Content

"), ("

", "
"), ("

", "
"), ("

Content

", "

Content

"), ("

Content

", "

Content

"), ( "

Content

Text
", "

Content

Text
", ), ], ) def test_removes_empty_tags(html_content, expected_output): assert remove_empty_tags_from_html_content(html_content) == expected_output