Fix unit tests
This commit is contained in:
parent
68c5375bab
commit
53b0594207
|
|
@ -72,11 +72,9 @@ class ModuleSolutionVisibilityTest(TestCase):
|
||||||
self.assertIsNone(result.get('errors'))
|
self.assertIsNone(result.get('errors'))
|
||||||
self.assertEqual(len(result.get('data').get('contentBlock').get('contents')), 1)
|
self.assertEqual(len(result.get('data').get('contentBlock').get('contents')), 1)
|
||||||
|
|
||||||
module_id = to_global_id('ModuleNode', self.module.pk)
|
|
||||||
|
|
||||||
result = self.teacher_client.execute(self.update_mutation, variables={
|
result = self.teacher_client.execute(self.update_mutation, variables={
|
||||||
'input': {
|
'input': {
|
||||||
'id': module_id,
|
'slug': self.module.slug,
|
||||||
'enabled': True
|
'enabled': True
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
@ -99,11 +97,9 @@ class ModuleSolutionVisibilityTest(TestCase):
|
||||||
|
|
||||||
self.assertEqual(len(result.get('data').get('contentBlock').get('contents')), 0)
|
self.assertEqual(len(result.get('data').get('contentBlock').get('contents')), 0)
|
||||||
|
|
||||||
module_id = to_global_id('ModuleNode', self.module.pk)
|
|
||||||
|
|
||||||
result = self.student_client.execute(self.update_mutation, variables={
|
result = self.student_client.execute(self.update_mutation, variables={
|
||||||
'input': {
|
'input': {
|
||||||
'id': module_id,
|
'slug': self.module.slug,
|
||||||
'enabled': True
|
'enabled': True
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue