@@ -179,7 +179,7 @@ def test_pagination_respects_first_after():
179179 'pageInfo' : {
180180 'startCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
181181 'endCursor' : 'YXJyYXljb25uZWN0aW9uOjM=' ,
182- 'hasPreviousPage' : False ,
182+ 'hasPreviousPage' : True ,
183183 'hasNextPage' : True ,
184184 }
185185 }
@@ -207,7 +207,7 @@ def test_pagination_respects_longfirst_after():
207207 'pageInfo' : {
208208 'startCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
209209 'endCursor' : 'YXJyYXljb25uZWN0aW9uOjQ=' ,
210- 'hasPreviousPage' : False ,
210+ 'hasPreviousPage' : True ,
211211 'hasNextPage' : False ,
212212 }
213213 }
@@ -231,7 +231,7 @@ def test_pagination_respects_last_before():
231231 'startCursor' : 'YXJyYXljb25uZWN0aW9uOjE=' ,
232232 'endCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
233233 'hasPreviousPage' : True ,
234- 'hasNextPage' : False ,
234+ 'hasNextPage' : True ,
235235 }
236236 }
237237 assert c .to_dict () == expected
@@ -259,7 +259,7 @@ def test_pagination_respects_longlast_before():
259259 'startCursor' : 'YXJyYXljb25uZWN0aW9uOjA=' ,
260260 'endCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
261261 'hasPreviousPage' : False ,
262- 'hasNextPage' : False ,
262+ 'hasNextPage' : True ,
263263 }
264264 }
265265 assert c .to_dict () == expected
@@ -283,7 +283,7 @@ def test_first_after_before_few():
283283 'pageInfo' : {
284284 'startCursor' : 'YXJyYXljb25uZWN0aW9uOjE=' ,
285285 'endCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
286- 'hasPreviousPage' : False ,
286+ 'hasPreviousPage' : True ,
287287 'hasNextPage' : True ,
288288 }
289289 }
@@ -312,8 +312,8 @@ def test_first_after_before_many():
312312 'pageInfo' : {
313313 'startCursor' : 'YXJyYXljb25uZWN0aW9uOjE=' ,
314314 'endCursor' : 'YXJyYXljb25uZWN0aW9uOjM=' ,
315- 'hasPreviousPage' : False ,
316- 'hasNextPage' : False ,
315+ 'hasPreviousPage' : True ,
316+ 'hasNextPage' : True ,
317317 }
318318 }
319319 assert c .to_dict () == expected
@@ -341,8 +341,8 @@ def test_first_after_before_exact():
341341 'pageInfo' : {
342342 'startCursor' : 'YXJyYXljb25uZWN0aW9uOjE=' ,
343343 'endCursor' : 'YXJyYXljb25uZWN0aW9uOjM=' ,
344- 'hasPreviousPage' : False ,
345- 'hasNextPage' : False ,
344+ 'hasPreviousPage' : True ,
345+ 'hasNextPage' : True ,
346346 }
347347 }
348348 assert c .to_dict () == expected
@@ -367,7 +367,7 @@ def test_last_after_before_few():
367367 'startCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
368368 'endCursor' : 'YXJyYXljb25uZWN0aW9uOjM=' ,
369369 'hasPreviousPage' : True ,
370- 'hasNextPage' : False ,
370+ 'hasNextPage' : True ,
371371 }
372372 }
373373 assert c .to_dict () == expected
@@ -395,8 +395,8 @@ def test_last_after_before_many():
395395 'pageInfo' : {
396396 'startCursor' : 'YXJyYXljb25uZWN0aW9uOjE=' ,
397397 'endCursor' : 'YXJyYXljb25uZWN0aW9uOjM=' ,
398- 'hasPreviousPage' : False ,
399- 'hasNextPage' : False ,
398+ 'hasPreviousPage' : True ,
399+ 'hasNextPage' : True ,
400400 }
401401 }
402402 assert c .to_dict () == expected
@@ -424,8 +424,8 @@ def test_last_after_before_exact():
424424 'pageInfo' : {
425425 'startCursor' : 'YXJyYXljb25uZWN0aW9uOjE=' ,
426426 'endCursor' : 'YXJyYXljb25uZWN0aW9uOjM=' ,
427- 'hasPreviousPage' : False ,
428- 'hasNextPage' : False ,
427+ 'hasPreviousPage' : True ,
428+ 'hasNextPage' : True ,
429429 }
430430 }
431431 assert c .to_dict () == expected
@@ -528,8 +528,8 @@ def test_no_elements_cursors_cross():
528528 'pageInfo' : {
529529 'startCursor' : None ,
530530 'endCursor' : None ,
531- 'hasPreviousPage' : False ,
532- 'hasNextPage' : False ,
531+ 'hasPreviousPage' : True ,
532+ 'hasNextPage' : True ,
533533 }
534534 }
535535 assert c .to_dict () == expected
@@ -627,7 +627,7 @@ def test_list_slice_works_with_a_just_right_array_slice():
627627 'pageInfo' : {
628628 'startCursor' : 'YXJyYXljb25uZWN0aW9uOjE=' ,
629629 'endCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
630- 'hasPreviousPage' : False ,
630+ 'hasPreviousPage' : True ,
631631 'hasNextPage' : True ,
632632 }
633633 }
@@ -658,7 +658,7 @@ def test_list_slice_works_with_an_oversized_array_slice_left_side():
658658 'pageInfo' : {
659659 'startCursor' : 'YXJyYXljb25uZWN0aW9uOjE=' ,
660660 'endCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
661- 'hasPreviousPage' : False ,
661+ 'hasPreviousPage' : True ,
662662 'hasNextPage' : True ,
663663 }
664664 }
@@ -685,7 +685,7 @@ def test_list_slice_works_with_an_oversized_array_slice_right_side():
685685 'pageInfo' : {
686686 'startCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
687687 'endCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
688- 'hasPreviousPage' : False ,
688+ 'hasPreviousPage' : True ,
689689 'hasNextPage' : True ,
690690 }
691691 }
@@ -712,7 +712,7 @@ def test_list_slice_works_with_an_oversized_array_slice_both_sides():
712712 'pageInfo' : {
713713 'startCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
714714 'endCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
715- 'hasPreviousPage' : False ,
715+ 'hasPreviousPage' : True ,
716716 'hasNextPage' : True ,
717717 }
718718 }
@@ -743,7 +743,7 @@ def test_list_slice_works_with_an_undersized_array_slice_left_side():
743743 'pageInfo' : {
744744 'startCursor' : 'YXJyYXljb25uZWN0aW9uOjM=' ,
745745 'endCursor' : 'YXJyYXljb25uZWN0aW9uOjQ=' ,
746- 'hasPreviousPage' : False ,
746+ 'hasPreviousPage' : True ,
747747 'hasNextPage' : False ,
748748 }
749749 }
@@ -774,7 +774,7 @@ def test_list_slice_works_with_an_undersized_array_slice_right_side():
774774 'pageInfo' : {
775775 'startCursor' : 'YXJyYXljb25uZWN0aW9uOjI=' ,
776776 'endCursor' : 'YXJyYXljb25uZWN0aW9uOjM=' ,
777- 'hasPreviousPage' : False ,
777+ 'hasPreviousPage' : True ,
778778 'hasNextPage' : True ,
779779 }
780780 }
@@ -801,7 +801,7 @@ def test_list_slice_works_with_an_undersized_array_slice_both_sides():
801801 'pageInfo' : {
802802 'startCursor' : 'YXJyYXljb25uZWN0aW9uOjM=' ,
803803 'endCursor' : 'YXJyYXljb25uZWN0aW9uOjM=' ,
804- 'hasPreviousPage' : False ,
804+ 'hasPreviousPage' : True ,
805805 'hasNextPage' : True ,
806806 }
807807 }
0 commit comments