10000 Cleanup wording · graphql-python/graphql-relay-py@ed20387 · GitHub
[go: up one dir, main page]

Skip to content

Commit ed20387

Browse files
committed
Cleanup wording
Replicates graphql/graphql-relay-js@b4cb206
1 parent f15bbb9 commit ed20387

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

src/graphql_relay/connection/array_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def offset_to_cursor(offset: int) -> ConnectionCursor:
221221

222222

223223
def cursor_to_offset(cursor: ConnectionCursor) -> Optional[int]:
224-
"""Rederive the offset from the cursor string."""
224+
"""Extract the offset from the cursor string."""
225225
try:
226226
return int(unbase64(cursor)[len(PREFIX) :])
227227
except binascii.Error:

tests/node/test_global.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def gives_different_ids(schema):
171171
None,
172172
)
173173

174-
def refetches_the_ids(schema):
174+
def allows_to_refetch_the_ids(schema):
175175
source = """
176176
{
177177
user: node(id: "VXNlcjox") {
< 10000 div class="Diff-module__diffHeaderWrapper--rsdD4" style="--header-sticky-offset:0px">

tests/node/test_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def get_node_type(
8282

8383

8484
def describe_node_interface_and_fields():
85-
def describe_refetchability():
85+
def describe_ability_to_refetch():
8686
def gets_the_correct_id_for_users():
8787
source = """
8888
{

tests/star_wars_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Ship(NamedTuple):
1919
Ship("3", "A-Wing"),
2020
# Yeah, technically it's Corellian. But it flew in the service of the rebels,
2121
# so for the purposes of this demo it's a rebel ship.
22-
Ship("4", "Millenium Falcon"),
22+
Ship("4", "Millennium Falcon"),
2323
Ship("5", "Home One"),
2424
Ship("6", "TIE Fighter"),
2525
Ship("7", "TIE Interceptor"),

tests/test_star_wars_connections.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def fetches_the_next_three_ships_of_the_rebels_with_a_cursor():
9191
},
9292
{
9393
"cursor": "YXJyYXljb25uZWN0aW9uOjM=",
94-
"node": {"name": "Millenium Falcon"},
94+
"node": {"name": "Millennium Falcon"},
9595
},
9696
{
9797
"cursor": "YXJyYXljb25uZWN0aW9uOjQ=",
@@ -177,7 +177,7 @@ def identifies_the_end_of_the_list():
177177
"node": {"name": "A-Wing"},
178178
},
179179
{
180-
"node": {"name": "Millenium Falcon"},
180+
"node": {"name": "Millennium Falcon"},
181181
},
182182
{
183183
"node": {"name": "Home One"},

tests/test_star_wars_object_identification.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def fetches_the_id_and_name_of_the_rebels():
1919
result = graphql_sync(schema, source)
2020
assert result == (expected, None)
2121

22-
def refetches_the_rebels():
22+
def fetches_the_rebels_by_global_id():
2323
source = """
2424
{
2525
node(id: "RmFjdGlvbjox") {
@@ -49,7 +49,7 @@ def fetches_the_id_and_name_of_the_empire():
4949
result = graphql_sync(schema, source)
5050
assert result == (expected, None)
5151

52-
def refetches_the_empire():
52+
def fetches_the_empire_by_global_id():
5353
source = """
5454
{
5555
node(id: "RmFjdGlvbjoy") {
@@ -64,7 +64,7 @@ def refetches_the_empire():
6464
result = graphql_sync(schema, source)
6565
assert result == (expected, None)
6666

67-
def refetches_the_x_wing():
67+
def fetches_the_x_wing_by_global_id():
6868
source = """
6969
{
7070
node(id: "U2hpcDox") {

0 commit comments

Comments
 (0)
0