# pyright: reportPrivateUsage=false # pyright: reportUnusedFunction=false """Test suite for `unstructured.documents.html` module.""" from __future__ import annotations import pathlib from typing import cast import pytest from lxml import etree from lxml import html as lxml_html from test_unstructured.unit_utils import ( FixtureRequest, Mock, example_doc_path, function_mock, property_mock, ) from unstructured.documents import html from unstructured.documents.elements import ( ListItem, NarrativeText, Table, Text, Title, ) from unstructured.documents.html import HTMLDocument, Page, _parse_HTMLTable_from_table_elem from unstructured.documents.html_elements import ( HTMLAddress, HTMLNarrativeText, HTMLTable, HTMLText, HTMLTitle, TagsMixin, ) TAGS = ( ( "