Skip to content

Commit

Permalink
Fix testst for pagination markers
Browse files Browse the repository at this point in the history
  • Loading branch information
sciyoshi committed Nov 22, 2017
1 parent 61a2dab commit bede3a2
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions graphql_relay/connection/tests/test_arrayconnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def test_pagination_respects_first_after():
'pageInfo': {
'startCursor': 'YXJyYXljb25uZWN0aW9uOjI=',
'endCursor': 'YXJyYXljb25uZWN0aW9uOjM=',
'hasPreviousPage': False,
'hasPreviousPage': True,
'hasNextPage': True,
}
}
Expand Down Expand Up @@ -207,7 +207,7 @@ def test_pagination_respects_longfirst_after():
'pageInfo': {
'startCursor': 'YXJyYXljb25uZWN0aW9uOjI=',
'endCursor': 'YXJyYXljb25uZWN0aW9uOjQ=',
'hasPreviousPage': False,
'hasPreviousPage': True,
'hasNextPage': False,
}
}
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -284,7 +284,7 @@ def test_first_after_before_few():
'pageInfo': {
'startCursor': 'YXJyYXljb25uZWN0aW9uOjE=',
'endCursor': 'YXJyYXljb25uZWN0aW9uOjI=',
'hasPreviousPage': False,
'hasPreviousPage': True,
'hasNextPage': True,
}
}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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,
}
}
Expand Down Expand Up @@ -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,
}
}
Expand All @@ -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,
}
}
Expand All @@ -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,
}
}
Expand Down Expand Up @@ -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,
}
}
Expand Down Expand Up @@ -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,
}
}
Expand All @@ -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,
}
}
Expand Down

0 comments on commit bede3a2

Please sign in to comment.