moving milestones check to access.py and upgrading milestones version
This commit is contained in:
@@ -26,10 +26,6 @@ class GatingTestCase(LoginEnrollmentTestCase, ModuleStoreTestCase):
|
||||
"""
|
||||
super(GatingTestCase, self).setUp()
|
||||
|
||||
# Patch Milestones feature flag
|
||||
self.settings_patcher = patch.dict('django.conf.settings.FEATURES', {'MILESTONES_APP': True})
|
||||
self.settings_patcher.start()
|
||||
|
||||
# create course
|
||||
self.course = CourseFactory.create(
|
||||
org='edX',
|
||||
@@ -81,13 +77,6 @@ class GatingTestCase(LoginEnrollmentTestCase, ModuleStoreTestCase):
|
||||
display_name='untitled problem 2'
|
||||
)
|
||||
|
||||
def tearDown(self):
|
||||
"""
|
||||
Tear down initial setup
|
||||
"""
|
||||
self.settings_patcher.stop()
|
||||
super(GatingTestCase, self).tearDown()
|
||||
|
||||
|
||||
class TestGetXBlockParent(GatingTestCase):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user