Remove test for objectives snapshot
This commit is contained in:
parent
b046eae52b
commit
a765d7874f
|
|
@ -110,25 +110,6 @@ class CreateSnapshotTestCase(SkillboxTestCase):
|
||||||
self.assertTrue(
|
self.assertTrue(
|
||||||
school_class_name in [school_class['name'] for school_class in
|
school_class_name in [school_class['name'] for school_class in
|
||||||
custom_content_block.get('visibleFor')])
|
custom_content_block.get('visibleFor')])
|
||||||
|
|
||||||
objectives = module['objectiveGroups'][0]['objectives']
|
|
||||||
|
|
||||||
self.assertEqual(len(objectives), 4)
|
|
||||||
|
|
||||||
hidden_objective = [objective for objective in objectives if
|
|
||||||
objective['text'] == self.hidden_objective.text][0]
|
|
||||||
custom_objective = [objective for objective in objectives if
|
|
||||||
objective['text'] == self.custom_objective.text][0]
|
|
||||||
|
|
||||||
# check if hidden objective is hidden for this school class
|
|
||||||
self.assertTrue(
|
|
||||||
school_class_name in [school_class['name'] for school_class in
|
|
||||||
hidden_objective.get('hiddenFor')])
|
|
||||||
# check if the custom objective is visible for this school class
|
|
||||||
self.assertTrue(
|
|
||||||
school_class_name in [school_class['name'] for school_class in
|
|
||||||
custom_objective.get('visibleFor')])
|
|
||||||
|
|
||||||
return module
|
return module
|
||||||
|
|
||||||
def _compare_content_blocks(self, content_blocks):
|
def _compare_content_blocks(self, content_blocks):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue