Skip to content

Commit

Permalink
all test function involving HTMLHeaderTextSplitter has bs4 requirment…
Browse files Browse the repository at this point in the history
… mark.
  • Loading branch information
AhmedTammaa committed Dec 19, 2024
1 parent 4297787 commit c2107b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/text-splitters/tests/unit_tests/test_text_splitters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]],
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit c2107b1

Please sign in to comment.