From c2107b14e423247f2d4a38996d3e8b2859001755 Mon Sep 17 00:00:00 2001 From: Ahmed Tammaa Date: Thu, 19 Dec 2024 22:35:06 +0000 Subject: [PATCH] all test function involving HTMLHeaderTextSplitter has bs4 requirment mark. --- libs/text-splitters/tests/unit_tests/test_text_splitters.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/text-splitters/tests/unit_tests/test_text_splitters.py b/libs/text-splitters/tests/unit_tests/test_text_splitters.py index 259218a1aefdc..1dd0992b5a7da 100644 --- a/libs/text-splitters/tests/unit_tests/test_text_splitters.py +++ b/libs/text-splitters/tests/unit_tests/test_text_splitters.py @@ -2424,6 +2424,7 @@ def test_html_header_text_splitter( ) ] ) +@pytest.mark.requires("bs4") def test_additional_html_header_text_splitter( html_header_splitter_splitter_factory: Any, headers_to_split_on: List[Tuple[str, str]], @@ -2492,7 +2493,8 @@ def test_additional_html_header_text_splitter( ) ] ) -def test_no_headers_with_multiple_splitters( +@pytest.mark.requires("bs4") +def test_html_no_headers_with_multiple_splitters( html_header_splitter_splitter_factory: Any, headers_to_split_on: List[Tuple[str, str]], html_content: str,