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.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={
|
||||
'input': {
|
||||
'id': module_id,
|
||||
'slug': self.module.slug,
|
||||
'enabled': True
|
||||
}
|
||||
})
|
||||
|
|
@ -99,11 +97,9 @@ class ModuleSolutionVisibilityTest(TestCase):
|
|||
|
||||
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={
|
||||
'input': {
|
||||
'id': module_id,
|
||||
'slug': self.module.slug,
|
||||
'enabled': True
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue