ENT-3460: updating usage of EnterpriseCustomerBrandingConfiguration, edx-enterprise 3.8.42 (#25376)

* bumping enterprise version

* adding pillow constraint

* updating usage of EnterpriseCustomerBrandingConfiguration
This commit is contained in:
Jeff Chaves
2020-10-19 16:42:16 -04:00
committed by GitHub
parent 2b5913b53d
commit d25d4038fd
11 changed files with 44 additions and 50 deletions

View File

@@ -76,7 +76,7 @@ class TestEnterpriseUtils(TestCase):
self.assertDictEqual(portal, {
'name': enterprise_customer_user.enterprise_customer.name,
'slug': enterprise_customer_user.enterprise_customer.slug,
'logo': enterprise_customer_user.enterprise_customer.branding_configuration.logo.url,
'logo': enterprise_customer_user.enterprise_customer.safe_branding_configuration.safe_logo_url,
})
@override_waffle_flag(ENTERPRISE_HEADER_LINKS, True)
@@ -98,7 +98,7 @@ class TestEnterpriseUtils(TestCase):
self.assertDictEqual(portal, {
'name': enterprise_customer_user.enterprise_customer.name,
'slug': enterprise_customer_user.enterprise_customer.slug,
'logo': None,
'logo': enterprise_customer_user.enterprise_customer.safe_branding_configuration.safe_logo_url,
})
@override_waffle_flag(ENTERPRISE_HEADER_LINKS, True)
@@ -132,7 +132,7 @@ class TestEnterpriseUtils(TestCase):
self.assertDictEqual(portal, {
'name': enterprise_customer_user.enterprise_customer.name,
'slug': enterprise_customer_user.enterprise_customer.slug,
'logo': enterprise_customer_user.enterprise_customer.branding_configuration.logo.url,
'logo': enterprise_customer_user.enterprise_customer.safe_branding_configuration.safe_logo_url,
})
@override_waffle_flag(ENTERPRISE_HEADER_LINKS, True)