Changes necessary for Django 1.11 tests to start

- Certificates management commands updates
- Moving reverse calls in tests into setUp from class definition
- Import shuffling
- Consolidating cryptograhpy version to 1.9
This commit is contained in:
bmedx
2017-11-08 11:46:05 -05:00
parent 1e6c72c5b6
commit f3f8d8ec96
18 changed files with 176 additions and 179 deletions

View File

@@ -7,7 +7,6 @@ from django.apps import AppConfig
import cms.lib.xblock.runtime
import xmodule.x_module
from openedx.core.lib.xblock_utils import xblock_local_resource_url
class XBlockConfig(AppConfig):
@@ -18,6 +17,8 @@ class XBlockConfig(AppConfig):
verbose_name = u'XBlock Configuration'
def ready(self):
from openedx.core.lib.xblock_utils import xblock_local_resource_url
# In order to allow descriptors to use a handler url, we need to
# monkey-patch the x_module library.
# TODO: Remove this code when Runtimes are no longer created by modulestores