Implement Site settings for Third Party Auth providers

This commit is contained in:
Brandon DeRosier
2016-09-15 00:03:37 -04:00
parent cdf413bda2
commit 3dcf689ee2
14 changed files with 194 additions and 36 deletions

View File

@@ -37,7 +37,8 @@ def with_site_configuration(domain="test.localhost", configuration=None):
with patch('openedx.core.djangoapps.site_configuration.helpers.get_current_site_configuration',
return_value=site_configuration):
with patch('openedx.core.djangoapps.theming.helpers.get_current_site', return_value=site):
return func(*args, **kwargs)
with patch('django.contrib.sites.models.SiteManager.get_current', return_value=site):
return func(*args, **kwargs)
return _decorated
return _decorator
@@ -63,4 +64,5 @@ def with_site_configuration_context(domain="test.localhost", configuration=None)
with patch('openedx.core.djangoapps.site_configuration.helpers.get_current_site_configuration',
return_value=site_configuration):
with patch('openedx.core.djangoapps.theming.helpers.get_current_site', return_value=site):
yield
with patch('django.contrib.sites.models.SiteManager.get_current', return_value=site):
yield