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'