Skip to content

Commit 96ef4cd

Browse files
More ruff formatting
1 parent 31a9a18 commit 96ef4cd

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

tests/unit/experimental/components/text_splitters/test_fixed_size_splitter.py

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,7 @@ def test_invalid_chunk_size() -> None:
103103
("Hello World", 0, 0),
104104
],
105105
)
106-
def test_adjust_chunk_start(
107-
text: str,
108-
approximate_start: int,
109-
expected_start: int
110-
) -> None:
106+
def test_adjust_chunk_start(text: str, approximate_start: int, expected_start: int) -> None:
111107
"""
112108
Test that the _adjust_chunk_start function correctly shifts
113109
the start index to avoid breaking words, unless no whitespace is found.
@@ -131,12 +127,7 @@ def test_adjust_chunk_start(
131127
("Hello World", 6, 15, 15),
132128
],
133129
)
134-
def test_adjust_chunk_end(
135-
text: str,
136-
start: int,
137-
approximate_end: int,
138-
expected_end: int
139-
) -> None:
130+
def test_adjust_chunk_end(text: str, start: int, approximate_end: int, expected_end: int) -> None:
140131
"""
141132
Test that the _adjust_chunk_end function correctly shifts
142133
the end index to avoid breaking words, unless no whitespace is found.
@@ -192,11 +183,7 @@ def test_adjust_chunk_end(
192183
],
193184
)
194185
async def test_fixed_size_splitter_run(
195-
text: str,
196-
chunk_size: int,
197-
chunk_overlap: int,
198-
approximate: bool,
199-
expected_chunks: list[str]
186+
text: str, chunk_size: int, chunk_overlap: int, approximate: bool, expected_chunks: list[str]
200187
) -> None:
201188
"""
202189
Test that 'FixedSizeSplitter.run' returns the expected chunks

0 commit comments

Comments
 (0)