unittest: NoReverseMatch for test panels sometimes happens
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
High
|
Akihiro Motoki |
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://
http://
Captured example is http://
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:/
Changed in horizon: | |
status: | New → In Progress |
Changed in horizon: | |
assignee: | Akihiro Motoki (amotoki) → nobody |
Changed in horizon: | |
assignee: | nobody → Akihiro Motoki (amotoki) |
Test order can be controlled by passing test modules directly to python manage.py test.
It turns out that the following command line reproduces this bug with 100%.
python manage.py test --settings= openstack_ dashboard. test.settings --exclude-tag selenium --exclude-tag integration --verbosity 2 openstack_ dashboard. test.unit openstack_ dashboard. test.test_ plugins openstack_ dashboard. dashboards. identity. projects. tests