@@ -135,31 +135,31 @@ async def test_respects_an_overly_large_last():
135
135
@mark .asyncio
136
136
async def test_respects_first_and_after ():
137
137
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
139
139
)
140
140
141
141
142
142
@mark .asyncio
143
143
async 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" )
145
145
146
146
147
147
@mark .asyncio
148
148
async def test_respects_last_and_before ():
149
149
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
151
151
)
152
152
153
153
154
154
@mark .asyncio
155
155
async 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" )
157
157
158
158
159
159
@mark .asyncio
160
160
async def test_respects_first_and_after_and_before_too_few ():
161
161
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" )} "' ,
163
163
"BC" ,
164
164
has_next_page = True ,
165
165
)
@@ -168,23 +168,23 @@ async def test_respects_first_and_after_and_before_too_few():
168
168
@mark .asyncio
169
169
async def test_respects_first_and_after_and_before_too_many ():
170
170
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" )} "' ,
172
172
"BCD" ,
173
173
)
174
174
175
175
176
176
@mark .asyncio
177
177
async def test_respects_first_and_after_and_before_exactly_right ():
178
178
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" )} "' ,
180
180
"BCD" ,
181
181
)
182
182
183
183
184
184
@mark .asyncio
185
185
async def test_respects_last_and_after_and_before_too_few ():
186
186
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" )} "' ,
188
188
"CD" ,
189
189
has_previous_page = True ,
190
190
)
@@ -193,15 +193,15 @@ async def test_respects_last_and_after_and_before_too_few():
193
193
@mark .asyncio
194
194
async def test_respects_last_and_after_and_before_too_many ():
195
195
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" )} "' ,
197
197
"BCD" ,
198
198
)
199
199
200
200
201
201
@mark .asyncio
202
202
async def test_respects_last_and_after_and_before_exactly_right ():
203
203
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" )} "' ,
205
205
"BCD" ,
206
206
)
207
207
@@ -219,19 +219,15 @@ async def test_returns_all_elements_if_cursors_are_invalid():
219
219
@mark .asyncio
220
220
async def test_returns_all_elements_if_cursors_are_on_the_outside ():
221
221
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 )} "' ,
225
223
"ABCDE" ,
226
224
)
227
225
228
226
229
227
@mark .asyncio
230
228
async def test_returns_no_elements_if_cursors_cross ():
231
229
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 )} "' ,
235
231
"" ,
236
232
)
237
233
0 commit comments