yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #89211
[Bug 1980214] [NEW] TemplateTagTests.test_site_branding_tag test failure in Debian unstable with Horizon / Yoga
Public bug reported:
Hi,
Building Horizon (yoga) in Debian Unstable resulted in failure with
TemplateTagTests.test_site_branding_tag. Here's the build log:
___________________ TemplateTagTests.test_site_branding_tag ____________________
[gw9] linux -- Python 3.9.13 /usr/bin/python3.9
self =
<horizon.test.unit.templatetags.test_templatetags.TemplateTagTests
testMethod=test_site_branding_tag>
def test_site_branding_tag(self):
"""Test if site_branding tag renders the correct setting."""
> rendered_str = self.render_template_tag("site_branding", "branding")
horizon/test/unit/templatetags/test_templatetags.py:58:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
horizon/test/unit/templatetags/test_templatetags.py:47: in render_template_tag
return self.render_template(tag_call, tag_require)
horizon/test/unit/templatetags/test_templatetags.py:54: in render_template
return template.render(Context(context))
/usr/lib/python3/dist-packages/django/template/base.py:175: in render
return self._render(context)
/usr/lib/python3/dist-packages/django/test/utils.py:111: in instrumented_test_render
return self.nodelist.render(context)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = [<django.template.defaulttags.LoadNode object at 0x7efd84ca8d60>, <TextNode: ' '>, <horizon.templatetags.branding.SiteBrandingNode object at 0x7efd84ca82e0>]
context = [{'True': True, 'False': False, 'None': None}, {}]
def render(self, context):
> return SafeString("".join([node.render_annotated(context) for node in self]))
E TypeError: sequence item 2: expected str instance, __proxy__ found
** Affects: horizon
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1980214
Title:
TemplateTagTests.test_site_branding_tag test failure in Debian
unstable with Horizon / Yoga
Status in OpenStack Dashboard (Horizon):
New
Bug description:
Hi,
Building Horizon (yoga) in Debian Unstable resulted in failure with
TemplateTagTests.test_site_branding_tag. Here's the build log:
___________________ TemplateTagTests.test_site_branding_tag ____________________
[gw9] linux -- Python 3.9.13 /usr/bin/python3.9
self =
<horizon.test.unit.templatetags.test_templatetags.TemplateTagTests
testMethod=test_site_branding_tag>
def test_site_branding_tag(self):
"""Test if site_branding tag renders the correct setting."""
> rendered_str = self.render_template_tag("site_branding", "branding")
horizon/test/unit/templatetags/test_templatetags.py:58:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
horizon/test/unit/templatetags/test_templatetags.py:47: in render_template_tag
return self.render_template(tag_call, tag_require)
horizon/test/unit/templatetags/test_templatetags.py:54: in render_template
return template.render(Context(context))
/usr/lib/python3/dist-packages/django/template/base.py:175: in render
return self._render(context)
/usr/lib/python3/dist-packages/django/test/utils.py:111: in instrumented_test_render
return self.nodelist.render(context)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = [<django.template.defaulttags.LoadNode object at 0x7efd84ca8d60>, <TextNode: ' '>, <horizon.templatetags.branding.SiteBrandingNode object at 0x7efd84ca82e0>]
context = [{'True': True, 'False': False, 'None': None}, {}]
def render(self, context):
> return SafeString("".join([node.render_annotated(context) for node in self]))
E TypeError: sequence item 2: expected str instance, __proxy__ found
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1980214/+subscriptions
Follow ups