Skip to content

Commit

Permalink
added requirement bs4 marker for the test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedTammaa committed Dec 19, 2024
1 parent b82bfc9 commit 4297787
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 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 @@ -2040,6 +2040,7 @@ def test_haskell_code_splitter() -> None:


@pytest.fixture
@pytest.mark.requires("bs4")
def html_header_splitter_splitter_factory() -> HTMLHeaderTextSplitter:
"""
Fixture to create an HTMLHeaderTextSplitter instance with given headers.
Expand Down Expand Up @@ -3047,7 +3048,7 @@ def test_html_splitter_with_small_chunk_size() -> None:
"""Test HTML splitting with a very small chunk size to validate chunking."""
html_content = """
<h1>Section 1</h1>
<p>This is some long text that should be split into multiple chunks due to the
<p>This is some long text that should be split into multiple chunks due to the
small chunk size.</p>
"""
splitter = HTMLSemanticPreservingSplitter(
Expand Down

0 comments on commit 4297787

Please sign in to comment.