File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -364,6 +364,12 @@ def rejects_a_schema_extended_with_invalid_root_types():
364
364
input SomeInputObject {
365
365
test: String
366
366
}
367
+
368
+ scalar SomeScalar
369
+
370
+ enum SomeEnum {
371
+ ENUM_VALUE
372
+ }
367
373
"""
368
374
)
369
375
schema = extend_schema (
@@ -381,7 +387,7 @@ def rejects_a_schema_extended_with_invalid_root_types():
381
387
parse (
382
388
"""
383
389
extend schema {
384
- mutation: SomeInputObject
390
+ mutation: SomeScalar
385
391
}
386
392
"""
387
393
),
@@ -391,7 +397,7 @@ def rejects_a_schema_extended_with_invalid_root_types():
391
397
parse (
392
398
"""
393
399
extend schema {
394
- subscription: SomeInputObject
400
+ subscription: SomeEnum
395
401
}
396
402
"""
397
403
),
@@ -404,12 +410,12 @@ def rejects_a_schema_extended_with_invalid_root_types():
404
410
},
405
411
{
406
412
"message" : "Mutation root type must be Object type"
407
- " if provided, it cannot be SomeInputObject ." ,
413
+ " if provided, it cannot be SomeScalar ." ,
408
414
"locations" : [(3 , 29 )],
409
415
},
410
416
{
411
417
"message" : "Subscription root type must be Object type"
412
- " if provided, it cannot be SomeInputObject ." ,
418
+ " if provided, it cannot be SomeEnum ." ,
413
419
"locations" : [(3 , 33 )],
414
420
},
415
421
]
You can’t perform that action at this time.
0 commit comments