def test_included(self): self.update_settings({'jujugui.cachebuster': 'foo'}) gui.includeme(self.config) expected_context = { 'config_url': '/config.js', 'convoy_url': '/foo/combo', 'raw': False, 'combine': True, } self.request.matchdict['uuid'] = 'env-uuid' context = views.app(self.request) self.assertEqual(expected_context, context)
def test_included(self): self.update_settings({'jujugui.cachebuster': 'foo'}) gui.includeme(self.config) expected_context = { 'config_url': '/config.js', 'convoy_url': '/foo/combo', 'raw': False, 'logo_url': '', 'combine': True, } self.request.matchdict['uuid'] = 'env-uuid' context = views.app(self.request) self.assertEqual(expected_context, context)
def test_sandbox_logo_url(self): self.update_settings({'jujugui.cachebuster': 'foo'}) self.request.domain = 'demo.jujucharms.com' gui.includeme(self.config) expected_context = { 'config_url': '/config.js', 'convoy_url': '/foo/combo', 'raw': False, 'logo_url': 'http://jujucharms.com/', 'combine': True, 'static_url': '', } context = views.app(self.request) self.assertEqual(expected_context, context)