@@ -134,32 +134,28 @@ async def test_respects_an_overly_large_last():
134134
135135@mark .asyncio
136136async def test_respects_first_and_after ():
137- await check (
138- 'first: 2, after: "{}"' .format (cursor_for ("B" )), "CD" , has_next_page = True
139- )
137+ await check (f'first: 2, after: "{ cursor_for ("B" )} "' , "CD" , has_next_page = True )
140138
141139
142140@mark .asyncio
143141async def test_respects_first_and_after_with_long_first ():
144- await check ('first: 10, after: "{}"' . format ( cursor_for ("B" )) , "CDE" )
142+ await check (f 'first: 10, after: "{ cursor_for ("B" )} "' , "CDE" )
145143
146144
147145@mark .asyncio
148146async def test_respects_last_and_before ():
149- await check (
150- 'last: 2, before: "{}"' .format (cursor_for ("D" )), "BC" , has_previous_page = True
151- )
147+ await check (f'last: 2, before: "{ cursor_for ("D" )} "' , "BC" , has_previous_page = True )
152148
153149
154150@mark .asyncio
155151async def test_respects_last_and_before_with_long_last ():
156- await check ('last: 10, before: "{}"' . format ( cursor_for ("D" )) , "ABC" )
152+ await check (f 'last: 10, before: "{ cursor_for ("D" )} "' , "ABC" )
157153
158154
159155@mark .asyncio
160156async def test_respects_first_and_after_and_before_too_few ():
161157 await check (
162- 'first: 2, after: "{}", before: "{}"' . format ( cursor_for ("A" ), cursor_for ( " E" )) ,
158+ f 'first: 2, after: "{ cursor_for ( "A" ) } ", before: "{ cursor_for ("E" )} "' ,
163159 "BC" ,
164160 has_next_page = True ,
165161 )
@@ -168,23 +164,21 @@ async def test_respects_first_and_after_and_before_too_few():
168164@mark .asyncio
169165async def test_respects_first_and_after_and_before_too_many ():
170166 await check (
171- 'first: 4, after: "{}", before: "{}"' .format (cursor_for ("A" ), cursor_for ("E" )),
172- "BCD" ,
167+ f'first: 4, after: "{ cursor_for ("A" )} ", before: "{ cursor_for ("E" )} "' , "BCD" ,
173168 )
174169
175170
176171@mark .asyncio
177172async def test_respects_first_and_after_and_before_exactly_right ():
178173 await check (
179- 'first: 3, after: "{}", before: "{}"' .format (cursor_for ("A" ), cursor_for ("E" )),
180- "BCD" ,
174+ f'first: 3, after: "{ cursor_for ("A" )} ", before: "{ cursor_for ("E" )} "' , "BCD" ,
181175 )
182176
183177
184178@mark .asyncio
185179async def test_respects_last_and_after_and_before_too_few ():
186180 await check (
187- 'last: 2, after: "{}", before: "{}"' . format ( cursor_for ("A" ), cursor_for ( " E" )) ,
181+ f 'last: 2, after: "{ cursor_for ( "A" ) } ", before: "{ cursor_for ("E" )} "' ,
188182 "CD" ,
189183 has_previous_page = True ,
190184 )
@@ -193,16 +187,14 @@ async def test_respects_last_and_after_and_before_too_few():
193187@mark .asyncio
194188async def test_respects_last_and_after_and_before_too_many ():
195189 await check (
196- 'last: 4, after: "{}", before: "{}"' .format (cursor_for ("A" ), cursor_for ("E" )),
197- "BCD" ,
190+ f'last: 4, after: "{ cursor_for ("A" )} ", before: "{ cursor_for ("E" )} "' , "BCD" ,
198191 )
199192
200193
201194@mark .asyncio
202195async def test_respects_last_and_after_and_before_exactly_right ():
203196 await check (
204- 'last: 3, after: "{}", before: "{}"' .format (cursor_for ("A" ), cursor_for ("E" )),
205- "BCD" ,
197+ f'last: 3, after: "{ cursor_for ("A" )} ", before: "{ cursor_for ("E" )} "' , "BCD" ,
206198 )
207199
208200
@@ -219,19 +211,15 @@ async def test_returns_all_elements_if_cursors_are_invalid():
219211@mark .asyncio
220212async def test_returns_all_elements_if_cursors_are_on_the_outside ():
221213 await check (
222- 'before: "{}" after: "{}"' .format (
223- base64 ("arrayconnection:%s" % 6 ), base64 ("arrayconnection:%s" % - 1 )
224- ),
214+ f'before: "{ base64 ("arrayconnection:%s" % 6 )} " after: "{ base64 ("arrayconnection:%s" % - 1 )} "' ,
225215 "ABCDE" ,
226216 )
227217
228218
229219@mark .asyncio
230220async def test_returns_no_elements_if_cursors_cross ():
231221 await check (
232- 'before: "{}" after: "{}"' .format (
233- base64 ("arrayconnection:%s" % 2 ), base64 ("arrayconnection:%s" % 4 )
234- ),
222+ f'before: "{ base64 ("arrayconnection:%s" % 2 )} " after: "{ base64 ("arrayconnection:%s" % 4 )} "' ,
235223 "" ,
236224 )
237225
0 commit comments