Fix unit tests

This commit is contained in:
Ramon Wenger 2022-01-29 21:26:18 +01:00
parent 59a32451ea
commit 1f0434376c
2 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ class ProjectMutationsTestCase(DefaultUserTestCase):
self.variables = { self.variables = {
'input': { 'input': {
'projectEntry': { 'projectEntry': {
'project': to_global_id('ProjectNode', self.project1.id), 'project': self.project1.slug,
'description': 'testdescription' 'description': 'testdescription'
} }
} }

View File

@ -33,7 +33,7 @@ class ProjectQuery(SkillboxTestCase):
self.variables = { self.variables = {
'input': { 'input': {
'id': to_global_id('ProjectNode', self.project1.id) 'slug': self.project1.slug
} }
} }
@ -83,7 +83,7 @@ mutation UpdateProjectMutation($input: UpdateProjectInput!){
# } # }
input = { input = {
'project': { 'project': {
'id': self.project1.graphql_id, 'slug': self.project1.slug,
'title': 'BAD! THIS IS BAD!' 'title': 'BAD! THIS IS BAD!'
} }
} }
@ -111,7 +111,7 @@ mutation UpdateProjectMutation($input: UpdateProjectInput!){
input = { input = {
'project': { 'project': {
'id': self.project1.graphql_id, 'slug': self.project1.slug,
'title': 'Good! THIS IS good!' 'title': 'Good! THIS IS good!'
} }
} }