← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1809983] [NEW] unittest: NoReverseMatch for test panels sometimes happens

 

Public bug reported:

NoReverseMatch error occasionally happens in openstack_dashboard unit tests.
For example, NoReverseMatch: u'plugin_panel' is not a registered namespace inside 'horizon:admin'
This seems to depends on the order of tests executed.

Recent examples are:
http://logs.openstack.org/18/498018/34/check/openstack-tox-py27/e1fc800/job-output.txt.gz#_2018-12-28_11_51_09_741094
http://logs.openstack.org/26/627626/1/check/openstack-tox-py27/0f30a56/job-output.txt.gz#_2018-12-28_11_41_14_703315

Captured example is http://paste.openstack.org/show/739018/

In addition, horizon current unit test does not catch errors in template rendering.
This can be enabled by specifying debug=True in OPTIONS parameter in TEMPLATES.
https://docs.djangoproject.com/en/2.1/topics/templates/#module-django.template.backends.django

** Affects: horizon
     Importance: High
     Assignee: Akihiro Motoki (amotoki)
         Status: New


** Tags: unittest

-- 
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/1809983

Title:
  unittest: NoReverseMatch for test panels sometimes happens

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  NoReverseMatch error occasionally happens in openstack_dashboard unit tests.
  For example, NoReverseMatch: u'plugin_panel' is not a registered namespace inside 'horizon:admin'
  This seems to depends on the order of tests executed.

  Recent examples are:
  http://logs.openstack.org/18/498018/34/check/openstack-tox-py27/e1fc800/job-output.txt.gz#_2018-12-28_11_51_09_741094
  http://logs.openstack.org/26/627626/1/check/openstack-tox-py27/0f30a56/job-output.txt.gz#_2018-12-28_11_41_14_703315

  Captured example is http://paste.openstack.org/show/739018/

  In addition, horizon current unit test does not catch errors in template rendering.
  This can be enabled by specifying debug=True in OPTIONS parameter in TEMPLATES.
  https://docs.djangoproject.com/en/2.1/topics/templates/#module-django.template.backends.django

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1809983/+subscriptions


Follow ups