Fix unit tests
This commit is contained in:
parent
46fcc10621
commit
36268581f9
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue