-
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert moving introspection_query.py to get_introspection_query.py
This change belongs to the GraphQL.js v15 branch, but we are still replicating the v14 branch. We should be faithful to what we advertise in version_js, which is currently GraphQL.js version 14.5.8.
- Loading branch information
Showing
6 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
from graphql import build_schema, parse, execute | ||
from graphql.utilities import get_introspection_query | ||
from graphql.utilities import introspection_query | ||
|
||
# noinspection PyUnresolvedReferences | ||
from ..fixtures import big_schema_sdl # noqa: F401 | ||
|
||
|
||
def test_execute_introspection_query(benchmark, big_schema_sdl): # noqa: F811 | ||
schema = build_schema(big_schema_sdl, assume_valid=True) | ||
query = parse(get_introspection_query()) | ||
query = parse(introspection_query.get_introspection_query()) | ||
result = benchmark(lambda: execute(schema, query)) | ||
assert result.errors is None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
from graphql import build_schema, parse, validate | ||
from graphql.utilities import get_introspection_query | ||
from graphql.utilities import introspection_query | ||
|
||
# noinspection PyUnresolvedReferences | ||
from ..fixtures import big_schema_sdl # noqa: F401 | ||
|
||
|
||
def test_validate_introspection_query(benchmark, big_schema_sdl): # noqa: F811 | ||
schema = build_schema(big_schema_sdl, assume_valid=True) | ||
query = parse(get_introspection_query()) | ||
query = parse(introspection_query.get_introspection_query()) | ||
result = benchmark(lambda: validate(schema, query)) | ||
assert result == [] |