diff --git a/server/books/tests/test_snapshots.py b/server/books/tests/test_snapshots.py index aeda62c7..896fbaac 100644 --- a/server/books/tests/test_snapshots.py +++ b/server/books/tests/test_snapshots.py @@ -110,25 +110,6 @@ class CreateSnapshotTestCase(SkillboxTestCase): self.assertTrue( school_class_name in [school_class['name'] for school_class in 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 def _compare_content_blocks(self, content_blocks):