Skip to content

Commit

Permalink
fixed linter issues in test_text_splitter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedTammaa committed Dec 20, 2024
1 parent d7ea998 commit 2bf3726
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/text-splitters/tests/unit_tests/test_text_splitters.py
Original file line number Diff line number Diff line change
Expand Up @@ -2046,8 +2046,9 @@ def html_header_splitter_splitter_factory() -> HTMLHeaderTextSplitter:
Fixture to create an HTMLHeaderTextSplitter instance with given headers.
This factory allows dynamic creation of splitters with different headers.
"""

def _create_splitter(
headers_to_split_on: List[Tuple[str, str]]
headers_to_split_on: List[Tuple[str, str]],
) -> HTMLHeaderTextSplitter:
return HTMLHeaderTextSplitter(headers_to_split_on=headers_to_split_on)

Expand Down Expand Up @@ -2366,8 +2367,7 @@ def test_html_header_text_splitter(
Document(
metadata={"Header 1": "Foo"},
page_content=(
"Some text about Baz \n"
"Some concluding text about Foo"
"Some text about Baz \nSome concluding text about Foo"
),
),
],
Expand Down

0 comments on commit 2bf3726

Please sign in to comment.