File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 14
14
def introspection_from_schema (
15
15
schema : GraphQLSchema ,
16
16
descriptions : bool = True ,
17
- specified_by_url : bool = False ,
17
+ specified_by_url : bool = True ,
18
18
directive_is_repeatable : bool = True ,
19
19
schema_description : bool = True ,
20
20
) -> IntrospectionSchema :
Original file line number Diff line number Diff line change @@ -32,14 +32,12 @@ def cycle_introspection(sdl_string):
32
32
build in-memory GraphQLSchema from it, produce a client-side representation of the
33
33
schema by using "build_client_schema" and then return that schema printed as SDL.
34
34
"""
35
- options = dict (specified_by_url = True , directive_is_repeatable = True )
36
-
37
35
server_schema = build_schema (sdl_string )
38
- initial_introspection = introspection_from_schema (server_schema , ** options )
36
+ initial_introspection = introspection_from_schema (server_schema )
39
37
client_schema = build_client_schema (initial_introspection )
40
38
# If the client then runs the introspection query against the client-side schema,
41
39
# it should get a result identical to what was returned by the server
42
- second_introspection = introspection_from_schema (client_schema , ** options )
40
+ second_introspection = introspection_from_schema (client_schema )
43
41
44
42
# If the client then runs the introspection query against the client-side
45
43
# schema, it should get a result identical to what was returned by the server.
Original file line number Diff line number Diff line change @@ -25,14 +25,16 @@ def describe_introspection_from_schema():
25
25
)
26
26
},
27
27
description = "This is a simple type" ,
28
- )
28
+ ),
29
+ description = 'This is a simple schema'
29
30
)
30
31
31
32
def converts_a_simple_schema ():
32
33
introspection = introspection_from_schema (schema )
33
34
34
35
assert introspection_to_sdl (introspection ) == dedent (
35
36
'''
37
+ """This is a simple schema"""
36
38
schema {
37
39
query: Simple
38
40
}
You can’t perform that action at this time.
0 commit comments