Fix unit tests
This commit is contained in:
parent
46fcc10621
commit
36268581f9
|
|
@ -37,9 +37,7 @@ class ProjectMutationsTestCase(DefaultUserTestCase):
|
||||||
'input': {
|
'input': {
|
||||||
'projectEntry': {
|
'projectEntry': {
|
||||||
'project': to_global_id('ProjectNode', self.project1.id),
|
'project': to_global_id('ProjectNode', self.project1.id),
|
||||||
'activity': 'testactivity',
|
'description': 'testdescription'
|
||||||
'nextSteps': 'teststep',
|
|
||||||
'reflection': 'testreflection'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -51,7 +49,7 @@ class ProjectMutationsTestCase(DefaultUserTestCase):
|
||||||
self.assertIsNone(result.get('errors'))
|
self.assertIsNone(result.get('errors'))
|
||||||
self.assertEqual(ProjectEntry.objects.count(), 1)
|
self.assertEqual(ProjectEntry.objects.count(), 1)
|
||||||
project_entry = ProjectEntry.objects.first()
|
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):
|
def test_should_not_be_able_to_add_entry_as_other_person(self):
|
||||||
client = create_client(self.student2)
|
client = create_client(self.student2)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue