Make nosehtmloutput an optional test requirement
It is not strictly needed. Change-Id: I37b2623ec834533a7ecae63084e2c2c04ecc1751
This commit is contained in:
parent
ff9cfff507
commit
8d7b2ce3c0
@ -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']
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user