moving milestones check to access.py and upgrading milestones version

This commit is contained in:
Sanford Student
2016-07-29 09:33:00 -04:00
parent 8582da4a97
commit fc943ff539
31 changed files with 68 additions and 124 deletions

View File

@@ -16,7 +16,6 @@ from student.tests.factories import UserFactory
@attr(shard=2)
@ddt
@patch.dict('django.conf.settings.FEATURES', {'MILESTONES_APP': True})
class TestGatingApi(ModuleStoreTestCase, MilestonesTestCaseMixin):
"""
Tests for the gating API

View File

@@ -4,14 +4,10 @@ Tests for the DoneXBlock.
This is nice as a simple example of the edX XBlock test framework.
'''
from mock import patch
from openedx.tests.xblock_integration.xblock_testcase import XBlockTestCase
# We set MILESTONES_APP to False to avoid XBlock access issues in this test,
# which is meant to exist independent of our particular LMS instance.
# pylint: disable=abstract-method
@patch.dict('django.conf.settings.FEATURES', {'MILESTONES_APP': False})
class TestDone(XBlockTestCase):
"""
Simple tests for the completion XBlock. We set up a page with two