Skip to content

Commit 4933704

Browse files
committed
Use American English
Replicates graphql/graphql-js@82ff653
1 parent b7a18ed commit 4933704

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

src/graphql/type/directives.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,17 +248,17 @@ def assert_directive(directive: Any) -> GraphQLDirective:
248248
description="Marks an element of a GraphQL schema as no longer supported.",
249249
)
250250

251-
# Used to provide a URL for specifying the behaviour of custom scalar definitions:
251+
# Used to provide a URL for specifying the behavior of custom scalar definitions:
252252
GraphQLSpecifiedByDirective = GraphQLDirective(
253253
name="specifiedBy",
254254
locations=[DirectiveLocation.SCALAR],
255255
args={
256256
"url": GraphQLArgument(
257257
GraphQLNonNull(GraphQLString),
258-
description="The URL that specifies the behaviour of this scalar.",
258+
description="The URL that specifies the behavior of this scalar.",
259259
)
260260
},
261-
description="Exposes a URL that specifies the behaviour of this scalar.",
261+
description="Exposes a URL that specifies the behavior of this scalar.",
262262
)
263263

264264
# Used to declare an Input Object as a OneOf Input Objects.

tests/utilities/test_build_ast_schema.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from typing import Union
88

99
import pytest
10+
1011
from graphql import graphql_sync
1112
from graphql.language import DocumentNode, InterfaceTypeDefinitionNode, parse, print_ast
1213
from graphql.type import (
@@ -1139,7 +1140,7 @@ def can_build_invalid_schema():
11391140
assert errors
11401141

11411142
def do_not_override_standard_types():
1142-
# Note: not sure it's desired behaviour to just silently ignore override
1143+
# Note: not sure it's desired behavior to just silently ignore override
11431144
# attempts so just documenting it here.
11441145

11451146
schema = build_schema(
@@ -1252,7 +1253,7 @@ def can_deep_copy_pickled_schema():
12521253
# check that printing the copied schema gives the same SDL
12531254
assert print_schema(copied) == sdl
12541255

1255-
@pytest.mark.slow()
1256+
@pytest.mark.slow
12561257
def describe_deepcopy_and_pickle_big(): # pragma: no cover
12571258
@pytest.mark.timeout(20)
12581259
def can_deep_copy_big_schema(big_schema_sdl): # noqa: F811

tests/utilities/test_print_schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -765,9 +765,9 @@ def prints_introspection_schema():
765765
reason: String = "No longer supported"
766766
) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | ENUM_VALUE
767767
768-
"""Exposes a URL that specifies the behaviour of this scalar."""
768+
"""Exposes a URL that specifies the behavior of this scalar."""
769769
directive @specifiedBy(
770-
"""The URL that specifies the behaviour of this scalar."""
770+
"""The URL that specifies the behavior of this scalar."""
771771
url: String!
772772
) on SCALAR
773773

0 commit comments

Comments
 (0)