Skip to content

Commit ae93e75

Browse files
committed
Mode 'dedent' into new test/utils folder
Replicates graphql/graphql-js@8be49f6
1 parent 6270492 commit ae93e75

34 files changed

+43
-38
lines changed

docs/modules/pyutils.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ PyUtils
88
.. autofunction:: camel_to_snake
99
.. autofunction:: snake_to_camel
1010
.. autofunction:: cached_property
11-
.. autofunction:: dedent
1211
.. autofunction:: did_you_mean
1312
.. autofunction:: register_description
1413
.. autofunction:: unregister_description

src/graphql/pyutils/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
from .convert_case import camel_to_snake, snake_to_camel
1212
from .cached_property import cached_property
13-
from .dedent import dedent
1413
from .description import (
1514
Description,
1615
is_description,
@@ -38,7 +37,6 @@
3837
"camel_to_snake",
3938
"snake_to_camel",
4039
"cached_property",
41-
"dedent",
4240
"did_you_mean",
4341
"Description",
4442
"is_description",

tests/benchmarks/test_build_ast_schema.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from graphql import parse, build_ast_schema, GraphQLSchema
22

3-
# noinspection PyUnresolvedReferences
43
from ..fixtures import big_schema_sdl # noqa: F401
54

65

tests/benchmarks/test_build_client_schema.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from graphql import build_client_schema, GraphQLSchema
22

3-
# noinspection PyUnresolvedReferences
43
from ..fixtures import big_schema_introspection_result # noqa: F401
54

65

tests/benchmarks/test_introspection_from_schema.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from graphql import build_schema, parse, execute
22
from graphql.utilities import get_introspection_query
33

4-
# noinspection PyUnresolvedReferences
54
from ..fixtures import big_schema_sdl # noqa: F401
65

76

tests/benchmarks/test_parser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from graphql import parse, DocumentNode
22

3-
# noinspection PyUnresolvedReferences
43
from ..fixtures import kitchen_sink_query # noqa: F401
54

65

tests/benchmarks/test_validate_gql.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from graphql import build_schema, parse, validate
22
from graphql.utilities import get_introspection_query
33

4-
# noinspection PyUnresolvedReferences
54
from ..fixtures import big_schema_sdl # noqa: F401
65

76

tests/benchmarks/test_validate_invalid_gql.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from graphql import build_schema, parse, validate
22

3-
# noinspection PyUnresolvedReferences
43
from ..fixtures import big_schema_sdl # noqa: F401
54

65

tests/benchmarks/test_validate_sdl.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from graphql import parse
22
from graphql.validation.validate import validate_sdl
33

4-
# noinspection PyUnresolvedReferences
54
from ..fixtures import big_schema_sdl # noqa: F401
65

76

tests/error/test_graphql_error.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
ObjectTypeDefinitionNode,
88
Source,
99
)
10-
from graphql.pyutils import dedent
10+
11+
from ..utils import dedent
1112

1213

1314
source = Source(

0 commit comments

Comments
 (0)