Merge pull request #13935 from edx/douglashall/WL-798

WL-798 Allow for hiding course mode banners on student dashboard
This commit is contained in:
Douglas Hall
2016-11-09 14:36:04 -05:00
committed by GitHub
5 changed files with 87 additions and 5 deletions

View File

@@ -42,8 +42,22 @@ class SiteMixin(object):
# Initialize client with default site domain
self.use_site(self.site)
def set_up_site(self, domain, site_configuration_values):
"""
Create Site and SiteConfiguration models and initialize test client with the created site
"""
site = SiteFactory.create(
domain=domain,
name=domain
)
__ = SiteConfigurationFactory.create(
site=site,
values=site_configuration_values
)
self.use_site(site)
def use_site(self, site):
"""
# Initializes the test client with the domain of the given site
Initializes the test client with the domain of the given site
"""
self.client = self.client_class(SERVER_NAME=site.domain)