Commit bd412182 by Chris Dodge

verticals shouldn't have 'data'

parent 21f4b058
......@@ -946,11 +946,7 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
self.assertTrue(getattr(vertical, 'is_draft', False))
self.assertNotIn('index_in_children_list', child.xml_attributes)
if hasattr(vertical, 'data'):
self.assertNotIn('index_in_children_list', vertical.data)
self.assertNotIn('parent_sequential_url', vertical.xml_attributes)
if hasattr(vertical, 'data'):
self.assertNotIn('parent_sequential_url', vertical.data)
for child in vertical.get_children():
self.assertTrue(getattr(child, 'is_draft', False))
......@@ -961,8 +957,6 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
if hasattr(child, 'data'):
self.assertNotIn('parent_sequential_url', child.data)
# make sure that we don't have a sequential that is in draft mode
sequential = draft_store.get_item(Location(['i4x', 'edX', 'toy',
'sequential', 'vertical_sequential', None]))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment