Fix unit tests

This commit is contained in:
Ramon Wenger 2021-10-05 23:25:39 +02:00
parent 46fcc10621
commit 36268581f9
1 changed files with 2 additions and 4 deletions

View File

@ -37,9 +37,7 @@ class ProjectMutationsTestCase(DefaultUserTestCase):
'input': {
'projectEntry': {
'project': to_global_id('ProjectNode', self.project1.id),
'activity': 'testactivity',
'nextSteps': 'teststep',
'reflection': 'testreflection'
'description': 'testdescription'
}
}
}
@ -51,7 +49,7 @@ class ProjectMutationsTestCase(DefaultUserTestCase):
self.assertIsNone(result.get('errors'))
self.assertEqual(ProjectEntry.objects.count(), 1)
project_entry = ProjectEntry.objects.first()
self.assertEqual(project_entry.activity, 'testactivity')
self.assertEqual(project_entry.description, 'testdescription')
def test_should_not_be_able_to_add_entry_as_other_person(self):
client = create_client(self.student2)