horizon/horizon
Ivan Kolodyazhny 1f80d94459 Use default Django test runner instead of nose
Nose has been in maintenance mode for the past several years. It has
issue with exit code [1] which leads to false positive results for our
seleniun-headless job.

This patch changes test runner for Horizon tests and does the following
things:

* Django test runner  executes test in a different order than Nose does.
  That's why we've got an issue with side-effect in
  horizon.tests.unit.tables.test_tables.MyToggleAction class. This patch
  adds workaround to it.
* Rename filename of test files to names starting with 'test_'
  so that the django test runner can find tests expectedly.
* '--with-html-output' option is temporary dropped and will be added in
  a following patch.
* Integraion tests is marked via django.test.tag mechanism which is
  introduced in Django 1.10
* 'selenium-headless' is broken now because we don't have geckodriver on
  gates, this patch makes it non-voting.
* 'tox -e cover' is fixed
* Remove @memorized decorator from
  dashboards.project.images.images.tables.filter_tenant_ids function.

[1] https://github.com/nose-devs/nose/issues/984

Depends-On: https://review.openstack.org/572095
Depends-On: https://review.openstack.org/572124
Depends-On: https://review.openstack.org/572390
Depends-On: https://review.openstack.org/572391

Related blueprint: improve-horizon-testing
Change-Id: I7fb2fd7dd40f301ea822154b9809a9a07610c507
2018-06-08 15:21:12 +03:00
..
browsers Reproduce navigations on refreshing ngdetails view 2018-03-29 15:01:59 +09:00
conf Support simple FIP disassociation (with FIP release) 2018-04-08 07:29:54 +09:00
contrib Fix H405 (multi line docstring) warnings (horizon) 2017-06-09 16:04:57 +00:00
forms django2: Replace django.core.urlresolves with django.urls 2018-02-17 01:36:48 +09:00
hacking Eliminate mutable default arguments 2015-12-17 09:58:46 +00:00
locale Imported Translations from Zanata 2018-05-13 06:29:03 +00:00
management Rename pull_catalog args from version to branch 2018-04-05 14:54:28 +02:00
middleware Merge "operation_log: add QUERY_STRING to request_url" 2018-03-28 20:15:04 +00:00
static Watch field item changes 2018-04-22 08:21:10 +08:00
tables Merge "Fix W503 warnings" 2018-04-24 09:48:08 +00:00
tabs TabGroup: Make tabs pluggable via horizon plugin config 2018-03-12 21:04:22 +09:00
templates Show WEBSSO disclaimer only when it is needed 2018-06-04 15:49:54 +03:00
templatetags Drop Django <= 1.10 support 2018-03-03 07:33:23 +09:00
test Use default Django test runner instead of nose 2018-06-08 15:21:12 +03:00
utils Merge "Make babel_extract_angular work with python 3" 2018-05-07 19:37:24 +00:00
workflows Workflow: Make steps pluggable via horizon plugin config 2018-04-13 12:57:46 +00:00
__init__.py Revert "Enable to refresh ngdetails view" 2017-08-02 18:31:22 +00:00
base.py Fix Angular errors in openstack_auth 2018-03-17 18:36:01 +09:00
context_processors.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
decorators.py django2: is_authenticated/is_anonymous is now property only 2018-02-17 01:36:54 +09:00
exceptions.py Correct odd exception message 2018-01-30 13:11:31 +09:00
karma.conf.js Makes the xstatic files lookup dynamic in the tests 2017-07-27 10:01:33 -04:00
loaders.py Django2: Use new custom template loader interface 2018-03-03 07:22:35 +09:00
messages.py hacking: noqa cleanup in horizon 2017-03-17 19:38:47 +00:00
notifications.py Fix W503 warnings 2018-04-11 18:13:47 +09:00
site_urls.py django2: Fix 3-tuple ImproperlyConfigured error 2018-03-03 07:20:43 +09:00
themes.py Django2: Use new custom template loader interface 2018-03-03 07:22:35 +09:00
version.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
views.py flake8-import-order: Ensure to place project imports last 2017-09-20 01:19:38 +00:00