From a45f1f032c89b4ea76951cb0ced31954248ca53b Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Mon, 16 May 2016 07:30:42 -0400 Subject: [PATCH] Set OAUTH2_PROVIDER_APPLICATION_MODEL for tests so that migrations can run in verbose mode --- cms/envs/test.py | 4 ++++ lms/envs/test.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/cms/envs/test.py b/cms/envs/test.py index a7072c58cb..aa688eff21 100644 --- a/cms/envs/test.py +++ b/cms/envs/test.py @@ -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' diff --git a/lms/envs/test.py b/lms/envs/test.py index a03b51ab9e..850de17a8d 100644 --- a/lms/envs/test.py +++ b/lms/envs/test.py @@ -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'