Make nosehtmloutput an optional test requirement

It is not strictly needed.

Change-Id: I37b2623ec834533a7ecae63084e2c2c04ecc1751
This commit is contained in:
Thomas Bechtold 2017-08-21 14:50:05 +02:00
parent ff9cfff507
commit 8d7b2ce3c0
4 changed files with 11 additions and 3 deletions

View File

@ -116,7 +116,12 @@ NOSE_ARGS = ['--nocapture',
'--all-modules']
# TODO(amotoki): Need to investigate why --with-html-output
# is unavailable in python3.
if six.PY2:
try:
import htmloutput # noqa: F401
has_html_output = True
except ImportError:
has_html_output = False
if six.PY2 and has_html_output:
NOSE_ARGS += ['--with-html-output',
'--html-out-file=ut_horizon_nose_results.html']

View File

@ -22,6 +22,10 @@ classifier =
Programming Language :: Python :: 3.5
Topic :: Internet :: WWW/HTTP
[extras]
test =
nosehtmloutput>=0.0.3 # Apache-2.0
[global]
setup-hooks =
openstack_dashboard.hooks.setup_hook

View File

@ -18,7 +18,6 @@ mox3!=0.19.0,>=0.7.0 # Apache-2.0
nodeenv>=0.9.4 # BSD
nose # LGPL
nose-exclude # LGPL
nosehtmloutput>=0.0.3 # Apache-2.0
nosexcover # BSD
openstack.nose-plugin>=0.7 # Apache-2.0
openstackdocstheme>=1.16.0 # Apache-2.0

View File

@ -13,7 +13,7 @@ setenv =
whitelist_externals =
bash
find
deps =
deps = .[test]
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =