@@ -179,7 +179,7 @@ def test_pagination_respects_first_after():
179
179
'pageInfo' : {
180
180
'startCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
181
181
'endCursor' : 'YXJyYXljb25uZWN0aW9uOjM=' ,
182
- 'hasPreviousPage' : False ,
182
+ 'hasPreviousPage' : True ,
183
183
'hasNextPage' : True ,
184
184
}
185
185
}
@@ -207,7 +207,7 @@ def test_pagination_respects_longfirst_after():
207
207
'pageInfo' : {
208
208
'startCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
209
209
'endCursor' : 'YXJyYXljb25uZWN0aW9uOjQ=' ,
210
- 'hasPreviousPage' : False ,
210
+ 'hasPreviousPage' : True ,
211
211
'hasNextPage' : False ,
212
212
}
213
213
}
@@ -231,7 +231,7 @@ def test_pagination_respects_last_before():
231
231
'startCursor' : 'YXJyYXljb25uZWN0aW9uOjE=' ,
232
232
'endCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
233
233
'hasPreviousPage' : True ,
234
- 'hasNextPage' : False ,
234
+ 'hasNextPage' : True ,
235
235
}
236
236
}
237
237
assert c .to_dict () == expected
@@ -259,7 +259,7 @@ def test_pagination_respects_longlast_before():
259
259
'startCursor' : 'YXJyYXljb25uZWN0aW9uOjA=' ,
260
260
'endCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
261
261
'hasPreviousPage' : False ,
262
- 'hasNextPage' : False ,
262
+ 'hasNextPage' : True ,
263
263
}
264
264
}
265
265
assert c .to_dict () == expected
@@ -283,7 +283,7 @@ def test_first_after_before_few():
283
283
'pageInfo' : {
284
284
'startCursor' : 'YXJyYXljb25uZWN0aW9uOjE=' ,
285
285
'endCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
286
- 'hasPreviousPage' : False ,
286
+ 'hasPreviousPage' : True ,
287
287
'hasNextPage' : True ,
288
288
}
289
289
}
@@ -312,8 +312,8 @@ def test_first_after_before_many():
312
312
'pageInfo' : {
313
313
'startCursor' : 'YXJyYXljb25uZWN0aW9uOjE=' ,
314
314
'endCursor' : 'YXJyYXljb25uZWN0aW9uOjM=' ,
315
- 'hasPreviousPage' : False ,
316
- 'hasNextPage' : False ,
315
+ 'hasPreviousPage' : True ,
316
+ 'hasNextPage' : True ,
317
317
}
318
318
}
319
319
assert c .to_dict () == expected
@@ -341,8 +341,8 @@ def test_first_after_before_exact():
341
341
'pageInfo' : {
342
342
'startCursor' : 'YXJyYXljb25uZWN0aW9uOjE=' ,
343
343
'endCursor' : 'YXJyYXljb25uZWN0aW9uOjM=' ,
344
- 'hasPreviousPage' : False ,
345
- 'hasNextPage' : False ,
344
+ 'hasPreviousPage' : True ,
345
+ 'hasNextPage' : True ,
346
346
}
347
347
}
348
348
assert c .to_dict () == expected
@@ -367,7 +367,7 @@ def test_last_after_before_few():
367
367
'startCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
368
368
'endCursor' : 'YXJyYXljb25uZWN0aW9uOjM=' ,
369
369
'hasPreviousPage' : True ,
370
- 'hasNextPage' : False ,
370
+ 'hasNextPage' : True ,
371
371
}
372
372
}
373
373
assert c .to_dict () == expected
@@ -395,8 +395,8 @@ def test_last_after_before_many():
395
395
'pageInfo' : {
396
396
'startCursor' : 'YXJyYXljb25uZWN0aW9uOjE=' ,
397
397
'endCursor' : 'YXJyYXljb25uZWN0aW9uOjM=' ,
398
- 'hasPreviousPage' : False ,
399
- 'hasNextPage' : False ,
398
+ 'hasPreviousPage' : True ,
399
+ 'hasNextPage' : True ,
400
400
}
401
401
}
402
402
assert c .to_dict () == expected
@@ -424,8 +424,8 @@ def test_last_after_before_exact():
424
424
'pageInfo' : {
425
425
'startCursor' : 'YXJyYXljb25uZWN0aW9uOjE=' ,
426
426
'endCursor' : 'YXJyYXljb25uZWN0aW9uOjM=' ,
427
- 'hasPreviousPage' : False ,
428
- 'hasNextPage' : False ,
427
+ 'hasPreviousPage' : True ,
428
+ 'hasNextPage' : True ,
429
429
}
430
430
}
431
431
assert c .to_dict () == expected
@@ -528,8 +528,8 @@ def test_no_elements_cursors_cross():
528
528
'pageInfo' : {
529
529
'startCursor' : None ,
530
530
'endCursor' : None ,
531
- 'hasPreviousPage' : False ,
532
- 'hasNextPage' : False ,
531
+ 'hasPreviousPage' : True ,
532
+ 'hasNextPage' : True ,
533
533
}
534
534
}
535
535
assert c .to_dict () == expected
@@ -627,7 +627,7 @@ def test_list_slice_works_with_a_just_right_array_slice():
627
627
'pageInfo' : {
628
628
'startCursor' : 'YXJyYXljb25uZWN0aW9uOjE=' ,
629
629
'endCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
630
- 'hasPreviousPage' : False ,
630
+ 'hasPreviousPage' : True ,
631
631
'hasNextPage' : True ,
632
632
}
633
633
}
@@ -658,7 +658,7 @@ def test_list_slice_works_with_an_oversized_array_slice_left_side():
658
658
'pageInfo' : {
659
659
'startCursor' : 'YXJyYXljb25uZWN0aW9uOjE=' ,
660
660
'endCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
661
- 'hasPreviousPage' : False ,
661
+ 'hasPreviousPage' : True ,
662
662
'hasNextPage' : True ,
663
663
}
664
664
}
@@ -685,7 +685,7 @@ def test_list_slice_works_with_an_oversized_array_slice_right_side():
685
685
'pageInfo' : {
686
686
'startCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
687
687
'endCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
688
- 'hasPreviousPage' : False ,
688
+ 'hasPreviousPage' : True ,
689
689
'hasNextPage' : True ,
690
690
}
691
691
}
@@ -712,7 +712,7 @@ def test_list_slice_works_with_an_oversized_array_slice_both_sides():
712
712
'pageInfo' : {
713
713
'startCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
714
714
'endCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
715
- 'hasPreviousPage' : False ,
715
+ 'hasPreviousPage' : True ,
716
716
'hasNextPage' : True ,
717
717
}
718
718
}
@@ -743,7 +743,7 @@ def test_list_slice_works_with_an_undersized_array_slice_left_side():
743
743
'pageInfo' : {
744
744
'startCursor' : 'YXJyYXljb25uZWN0aW9uOjM=' ,
745
745
'endCursor' : 'YXJyYXljb25uZWN0aW9uOjQ=' ,
746
- 'hasPreviousPage' : False ,
746
+ 'hasPreviousPage' : True ,
747
747
'hasNextPage' : False ,
748
748
}
749
749
}
@@ -774,7 +774,7 @@ def test_list_slice_works_with_an_undersized_array_slice_right_side():
774
774
'pageInfo' : {
775
775
'startCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
776
776
'endCursor' : 'YXJyYXljb25uZWN0aW9uOjM=' ,
777
- 'hasPreviousPage' : False ,
777
+ 'hasPreviousPage' : True ,
778
778
'hasNextPage' : True ,
779
779
}
780
780
}
@@ -801,7 +801,7 @@ def test_list_slice_works_with_an_undersized_array_slice_both_sides():
801
801
'pageInfo' : {
802
802
'startCursor' : 'YXJyYXljb25uZWN0aW9uOjM=' ,
803
803
'endCursor' : 'YXJyYXljb25uZWN0aW9uOjM=' ,
804
- 'hasPreviousPage' : False ,
804
+ 'hasPreviousPage' : True ,
805
805
'hasNextPage' : True ,
806
806
}
807
807
}
0 commit comments