Set OAUTH2_PROVIDER_APPLICATION_MODEL for tests so that migrations can run in verbose mode

This commit is contained in:
Calen Pennington
2016-05-16 07:30:42 -04:00
parent 226da7d364
commit a45f1f032c
2 changed files with 8 additions and 0 deletions

View File

@@ -326,3 +326,7 @@ FEATURES['CUSTOM_COURSES_EDX'] = True
# API access management -- needed for simple-history to run.
INSTALLED_APPS += ('openedx.core.djangoapps.api_admin',)
# Set the default Oauth2 Provider Model so that migrations can run in
# verbose mode
OAUTH2_PROVIDER_APPLICATION_MODEL = 'oauth2_provider.Application'

View File

@@ -577,3 +577,7 @@ JWT_AUTH.update({
# better performant unit tests.
from openedx.core.lib.block_structure.transformer_registry import TransformerRegistry
TransformerRegistry.USE_PLUGIN_MANAGER = False
# Set the default Oauth2 Provider Model so that migrations can run in
# verbose mode
OAUTH2_PROVIDER_APPLICATION_MODEL = 'oauth2_provider.Application'