@@ -135,31 +135,31 @@ async def test_respects_an_overly_large_last():
135135@mark .asyncio
136136async def test_respects_first_and_after ():
137137 await check (
138- 'first: 2, after: "{}"' . format ( cursor_for ("B" )) , "CD" , has_next_page = True
138+ f 'first: 2, after: \" { cursor_for ("B" )} \" ' , "CD" , has_next_page = True
139139 )
140140
141141
142142@mark .asyncio
143143async def test_respects_first_and_after_with_long_first ():
144- await check ('first: 10, after: "{}"' . format ( cursor_for ("B" )) , "CDE" )
144+ await check (f 'first: 10, after: "{ cursor_for ("B" )} "' , "CDE" )
145145
146146
147147@mark .asyncio
148148async def test_respects_last_and_before ():
149149 await check (
150- 'last: 2, before: "{}"' . format ( cursor_for ("D" )) , "BC" , has_previous_page = True
150+ f 'last: 2, before: "{ cursor_for ("D" )} "' , "BC" , has_previous_page = True
151151 )
152152
153153
154154@mark .asyncio
155155async def test_respects_last_and_before_with_long_last ():
156- await check ('last: 10, before: "{}"' . format ( cursor_for ("D" )) , "ABC" )
156+ await check (f 'last: 10, before: "{ cursor_for ("D" )} "' , "ABC" )
157157
158158
159159@mark .asyncio
160160async def test_respects_first_and_after_and_before_too_few ():
161161 await check (
162- 'first: 2, after: "{}", before: "{}"' . format ( cursor_for ("A" ), cursor_for ( " E" )) ,
162+ f 'first: 2, after: "{ cursor_for ( "A" ) } ", before: "{ cursor_for ("E" )} "' ,
163163 "BC" ,
164164 has_next_page = True ,
165165 )
@@ -168,23 +168,23 @@ async def test_respects_first_and_after_and_before_too_few():
168168@mark .asyncio
169169async def test_respects_first_and_after_and_before_too_many ():
170170 await check (
171- 'first: 4, after: "{}", before: "{}"' . format ( cursor_for ("A" ), cursor_for ( " E" )) ,
171+ f 'first: 4, after: "{ cursor_for ( "A" ) } ", before: "{ cursor_for ("E" )} "' ,
172172 "BCD" ,
173173 )
174174
175175
176176@mark .asyncio
177177async def test_respects_first_and_after_and_before_exactly_right ():
178178 await check (
179- 'first: 3, after: "{}", before: "{}"' . format ( cursor_for ("A" ), cursor_for ( " E" )) ,
179+ f 'first: 3, after: "{ cursor_for ( "A" ) } ", before: "{ cursor_for ("E" )} "' ,
180180 "BCD" ,
181181 )
182182
183183
184184@mark .asyncio
185185async def test_respects_last_and_after_and_before_too_few ():
186186 await check (
187- 'last: 2, after: "{}", before: "{}"' . format ( cursor_for ("A" ), cursor_for ( " E" )) ,
187+ f 'last: 2, after: "{ cursor_for ( "A" ) } ", before: "{ cursor_for ("E" )} "' ,
188188 "CD" ,
189189 has_previous_page = True ,
190190 )
@@ -193,15 +193,15 @@ async def test_respects_last_and_after_and_before_too_few():
193193@mark .asyncio
194194async def test_respects_last_and_after_and_before_too_many ():
195195 await check (
196- 'last: 4, after: "{}", before: "{}"' . format ( cursor_for ("A" ), cursor_for ( " E" )) ,
196+ f 'last: 4, after: "{ cursor_for ( "A" ) } ", before: "{ cursor_for ("E" )} "' ,
197197 "BCD" ,
198198 )
199199
200200
201201@mark .asyncio
202202async def test_respects_last_and_after_and_before_exactly_right ():
203203 await check (
204- 'last: 3, after: "{}", before: "{}"' . format ( cursor_for ("A" ), cursor_for ( " E" )) ,
204+ f 'last: 3, after: "{ cursor_for ( "A" ) } ", before: "{ cursor_for ("E" )} "' ,
205205 "BCD" ,
206206 )
207207
@@ -219,19 +219,15 @@ async def test_returns_all_elements_if_cursors_are_invalid():
219219@mark .asyncio
220220async def test_returns_all_elements_if_cursors_are_on_the_outside ():
221221 await check (
222- 'before: "{}" after: "{}"' .format (
223- base64 ("arrayconnection:%s" % 6 ), base64 ("arrayconnection:%s" % - 1 )
224- ),
222+ f'before: "{ base64 ("arrayconnection:%s" % 6 )} " after: "{ base64 ("arrayconnection:%s" % - 1 )} "' ,
225223 "ABCDE" ,
226224 )
227225
228226
229227@mark .asyncio
230228async def test_returns_no_elements_if_cursors_cross ():
231229 await check (
232- 'before: "{}" after: "{}"' .format (
233- base64 ("arrayconnection:%s" % 2 ), base64 ("arrayconnection:%s" % 4 )
234- ),
230+ f'before: "{ base64 ("arrayconnection:%s" % 2 )} " after: "{ base64 ("arrayconnection:%s" % 4 )} "' ,
235231 "" ,
236232 )
237233
0 commit comments