@@ -103,11 +103,7 @@ def test_invalid_chunk_size() -> None:
103
103
("Hello World" , 0 , 0 ),
104
104
],
105
105
)
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 :
111
107
"""
112
108
Test that the _adjust_chunk_start function correctly shifts
113
109
the start index to avoid breaking words, unless no whitespace is found.
@@ -131,12 +127,7 @@ def test_adjust_chunk_start(
131
127
("Hello World" , 6 , 15 , 15 ),
132
128
],
133
129
)
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 :
140
131
"""
141
132
Test that the _adjust_chunk_end function correctly shifts
142
133
the end index to avoid breaking words, unless no whitespace is found.
@@ -192,11 +183,7 @@ def test_adjust_chunk_end(
192
183
],
193
184
)
194
185
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 ]
200
187
) -> None :
201
188
"""
202
189
Test that 'FixedSizeSplitter.run' returns the expected chunks
0 commit comments