Update schema, fix cypress test

This commit is contained in:
Ramon Wenger 2020-02-04 22:05:12 +01:00
parent ece98b50cd
commit c4cacac1c7
3 changed files with 1089 additions and 556 deletions

File diff suppressed because it is too large Load Diff

View File

@ -5,6 +5,7 @@
"sentence": "Hir ist ein Feler gewesen",
"offset": 0,
"length": 3,
"sentenceOffset": 0,
"affected": "Hir",
"corrected": "Dir",
"__typename": "SpellCheckStepNode"
@ -13,6 +14,7 @@
"sentence": "Hir ist ein Feler gewesen",
"offset": 12,
"length": 5,
"sentenceOffset": 0,
"affected": "Feler",
"corrected": "Fehler",
"__typename": "SpellCheckStepNode"
@ -21,6 +23,7 @@
"sentence": "Hir ist ein Feler gewesen",
"offset": 18,
"length": 7,
"sentenceOffset": 0,
"affected": "gewesen",
"corrected": "gewesen.",
"__typename": "SpellCheckStepNode"

View File

@ -31,14 +31,14 @@ class Query(UsersQuery, AllUsersQuery, ModuleRoomsQuery, RoomsQuery, ObjectivesQ
node = relay.Node.Field()
if settings.DEBUG:
debug = graphene.Field(DjangoDebug, name='__debug')
debug = graphene.Field(DjangoDebug, name='_debug')
class Mutation(BookMutations, RoomMutations, AssignmentMutations, ObjectiveMutations, CoreMutations, PortfolioMutations,
ProfileMutations, SurveyMutations, NoteMutations, RegistrationMutations, SpellCheckMutations,
graphene.ObjectType):
if settings.DEBUG:
debug = graphene.Field(DjangoDebug, name='__debug')
debug = graphene.Field(DjangoDebug, name='_debug')
schema = graphene.Schema(query=Query, mutation=Mutation)