diff --git a/graphql_relay/connection/tests/test_arrayconnection.py b/graphql_relay/connection/tests/test_arrayconnection.py index 102ba63..3c8e4bf 100644 --- a/graphql_relay/connection/tests/test_arrayconnection.py +++ b/graphql_relay/connection/tests/test_arrayconnection.py @@ -179,7 +179,7 @@ def test_pagination_respects_first_after(): 'pageInfo': { 'startCursor': 'YXJyYXljb25uZWN0aW9uOjI=', 'endCursor': 'YXJyYXljb25uZWN0aW9uOjM=', - 'hasPreviousPage': False, + 'hasPreviousPage': True, 'hasNextPage': True, } } @@ -207,7 +207,7 @@ def test_pagination_respects_longfirst_after(): 'pageInfo': { 'startCursor': 'YXJyYXljb25uZWN0aW9uOjI=', 'endCursor': 'YXJyYXljb25uZWN0aW9uOjQ=', - 'hasPreviousPage': False, + 'hasPreviousPage': True, 'hasNextPage': False, } } @@ -231,7 +231,7 @@ def test_pagination_respects_last_before(): 'startCursor': 'YXJyYXljb25uZWN0aW9uOjE=', 'endCursor': 'YXJyYXljb25uZWN0aW9uOjI=', 'hasPreviousPage': True, - 'hasNextPage': False, + 'hasNextPage': True, } } assert c.to_dict() == expected @@ -259,7 +259,7 @@ def test_pagination_respects_longlast_before(): 'startCursor': 'YXJyYXljb25uZWN0aW9uOjA=', 'endCursor': 'YXJyYXljb25uZWN0aW9uOjI=', 'hasPreviousPage': False, - 'hasNextPage': False, + 'hasNextPage': True, } } assert c.to_dict() == expected @@ -284,7 +284,7 @@ def test_first_after_before_few(): 'pageInfo': { 'startCursor': 'YXJyYXljb25uZWN0aW9uOjE=', 'endCursor': 'YXJyYXljb25uZWN0aW9uOjI=', - 'hasPreviousPage': False, + 'hasPreviousPage': True, 'hasNextPage': True, } } @@ -314,8 +314,8 @@ def test_first_after_before_many(): 'pageInfo': { 'startCursor': 'YXJyYXljb25uZWN0aW9uOjE=', 'endCursor': 'YXJyYXljb25uZWN0aW9uOjM=', - 'hasPreviousPage': False, - 'hasNextPage': False, + 'hasPreviousPage': True, + 'hasNextPage': True, } } assert c.to_dict() == expected @@ -344,8 +344,8 @@ def test_first_after_before_exact(): 'pageInfo': { 'startCursor': 'YXJyYXljb25uZWN0aW9uOjE=', 'endCursor': 'YXJyYXljb25uZWN0aW9uOjM=', - 'hasPreviousPage': False, - 'hasNextPage': False, + 'hasPreviousPage': True, + 'hasNextPage': True, } } assert c.to_dict() == expected @@ -371,7 +371,7 @@ def test_last_after_before_few(): 'startCursor': 'YXJyYXljb25uZWN0aW9uOjI=', 'endCursor': 'YXJyYXljb25uZWN0aW9uOjM=', 'hasPreviousPage': True, - 'hasNextPage': False, + 'hasNextPage': True, } } assert c.to_dict() == expected @@ -400,8 +400,8 @@ def test_last_after_before_many(): 'pageInfo': { 'startCursor': 'YXJyYXljb25uZWN0aW9uOjE=', 'endCursor': 'YXJyYXljb25uZWN0aW9uOjM=', - 'hasPreviousPage': False, - 'hasNextPage': False, + 'hasPreviousPage': True, + 'hasNextPage': True, } } assert c.to_dict() == expected @@ -430,8 +430,8 @@ def test_last_after_before_exact(): 'pageInfo': { 'startCursor': 'YXJyYXljb25uZWN0aW9uOjE=', 'endCursor': 'YXJyYXljb25uZWN0aW9uOjM=', - 'hasPreviousPage': False, - 'hasNextPage': False, + 'hasPreviousPage': True, + 'hasNextPage': True, } } assert c.to_dict() == expected @@ -534,8 +534,8 @@ def test_no_elements_cursors_cross(): 'pageInfo': { 'startCursor': None, 'endCursor': None, - 'hasPreviousPage': False, - 'hasNextPage': False, + 'hasPreviousPage': True, + 'hasNextPage': True, } } assert c.to_dict() == expected @@ -633,7 +633,7 @@ def test_list_slice_works_with_a_just_right_array_slice(): 'pageInfo': { 'startCursor': 'YXJyYXljb25uZWN0aW9uOjE=', 'endCursor': 'YXJyYXljb25uZWN0aW9uOjI=', - 'hasPreviousPage': False, + 'hasPreviousPage': True, 'hasNextPage': True, } } @@ -664,7 +664,7 @@ def test_list_slice_works_with_an_oversized_array_slice_left_side(): 'pageInfo': { 'startCursor': 'YXJyYXljb25uZWN0aW9uOjE=', 'endCursor': 'YXJyYXljb25uZWN0aW9uOjI=', - 'hasPreviousPage': False, + 'hasPreviousPage': True, 'hasNextPage': True, } } @@ -691,7 +691,7 @@ def test_list_slice_works_with_an_oversized_array_slice_right_side(): 'pageInfo': { 'startCursor': 'YXJyYXljb25uZWN0aW9uOjI=', 'endCursor': 'YXJyYXljb25uZWN0aW9uOjI=', - 'hasPreviousPage': False, + 'hasPreviousPage': True, 'hasNextPage': True, } } @@ -718,7 +718,7 @@ def test_list_slice_works_with_an_oversized_array_slice_both_sides(): 'pageInfo': { 'startCursor': 'YXJyYXljb25uZWN0aW9uOjI=', 'endCursor': 'YXJyYXljb25uZWN0aW9uOjI=', - 'hasPreviousPage': False, + 'hasPreviousPage': True, 'hasNextPage': True, } } @@ -749,7 +749,7 @@ def test_list_slice_works_with_an_undersized_array_slice_left_side(): 'pageInfo': { 'startCursor': 'YXJyYXljb25uZWN0aW9uOjM=', 'endCursor': 'YXJyYXljb25uZWN0aW9uOjQ=', - 'hasPreviousPage': False, + 'hasPreviousPage': True, 'hasNextPage': False, } } @@ -780,7 +780,7 @@ def test_list_slice_works_with_an_undersized_array_slice_right_side(): 'pageInfo': { 'startCursor': 'YXJyYXljb25uZWN0aW9uOjI=', 'endCursor': 'YXJyYXljb25uZWN0aW9uOjM=', - 'hasPreviousPage': False, + 'hasPreviousPage': True, 'hasNextPage': True, } } @@ -807,7 +807,7 @@ def test_list_slice_works_with_an_undersized_array_slice_both_sides(): 'pageInfo': { 'startCursor': 'YXJyYXljb25uZWN0aW9uOjM=', 'endCursor': 'YXJyYXljb25uZWN0aW9uOjM=', - 'hasPreviousPage': False, + 'hasPreviousPage': True, 'hasNextPage': True, } }