Commit f2b3f913 by David Ormsbee

Merge pull request #9443 from edx/ormsbee/group_access_test_speedups

Use bulk_operations in group access tests.
parents 71e367ea 6b12969e
...@@ -126,6 +126,7 @@ class GroupAccessTestCase(ModuleStoreTestCase): ...@@ -126,6 +126,7 @@ class GroupAccessTestCase(ModuleStoreTestCase):
self.course = CourseFactory.create( self.course = CourseFactory.create(
user_partitions=[self.animal_partition, self.color_partition], user_partitions=[self.animal_partition, self.color_partition],
) )
with self.store.bulk_operations(self.course.id, emit_signals=False):
chapter = ItemFactory.create(category='chapter', parent=self.course) chapter = ItemFactory.create(category='chapter', parent=self.course)
section = ItemFactory.create(category='sequential', parent=chapter) section = ItemFactory.create(category='sequential', parent=chapter)
vertical = ItemFactory.create(category='vertical', parent=section) vertical = ItemFactory.create(category='vertical', parent=section)
......
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