Drop nose dependencies
Horizon test setting no longer depends on nose and related stuffs. This commit cleans up nose related dependencies. The change was made in horizon Rocky-3, so horizon 14.0.0.0b3 is required at least. The command line to invoke UT in tox.ini is updated accordingly: * --ignore-files=masakaridashboard/test/uuidsentinel.py is unnecessary as this file does not include test cases. * --verbosity 2 is added to watch the test progress. * Duplicated {posargs} in 'coverage' env is fixed. * --exclude-dir in 'coverage' env is dropped as the corresponding directory does not exist. Change-Id: I28b97f49ba480d2cbada36026e5bc6932213c689
This commit is contained in:
parent
d89b82ce76
commit
253294f0b5
|
@ -10,6 +10,6 @@
|
|||
pbr!=2.1.0,>=2.0.0 # Apache-2.0
|
||||
|
||||
# Horizon Core Requirements
|
||||
horizon>=13.0.0 # Apache-2.0
|
||||
horizon>=14.0.0.0b3 # Apache-2.0
|
||||
openstacksdk>=0.13.0
|
||||
PyYAML>=3.12 # MIT
|
||||
|
|
|
@ -11,14 +11,8 @@ hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
|
|||
|
||||
# Testing Requirements
|
||||
coverage!=4.4,>=4.0 # Apache-2.0
|
||||
django-nose>=1.4.4 # BSD
|
||||
mock>=2.0.0 # BSD
|
||||
mox3>=0.20.0 # Apache-2.0
|
||||
nodeenv>=0.9.4 # BSD
|
||||
nose>=1.3.7 # LGPL
|
||||
nose-exclude>=0.3.0 # LGPL
|
||||
nosexcover>=1.0.10 # BSD
|
||||
openstack.nose-plugin>=0.7 # Apache-2.0
|
||||
nosehtmloutput>=0.0.3 # Apache-2.0
|
||||
selenium>=2.50.1 # Apache-2.0
|
||||
xvfbwrapper>=0.1.3 #license: MIT
|
||||
|
|
6
tox.ini
6
tox.ini
|
@ -17,7 +17,7 @@ deps =
|
|||
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
|
||||
-r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
commands = python manage.py test {posargs} --settings=masakaridashboard.test.settings
|
||||
commands = python manage.py test {posargs} --settings=masakaridashboard.test.settings --verbosity 2
|
||||
|
||||
[testenv:pep8]
|
||||
commands = flake8 {posargs}
|
||||
|
@ -28,7 +28,7 @@ commands = {posargs}
|
|||
[testenv:cover]
|
||||
commands =
|
||||
coverage erase
|
||||
coverage run {toxinidir}/manage.py test masakaridashboard --settings=masakaridashboard.test.settings {posargs} --exclude-dir=masakaridashboard/test/integration_tests {posargs}
|
||||
coverage run {toxinidir}/manage.py test masakaridashboard --settings=masakaridashboard.test.settings {posargs}
|
||||
coverage xml --omit '.tox/cover/*' -o 'cover/coverage.xml'
|
||||
coverage html --omit '.tox/cover/*' -d 'cover/htmlcov'
|
||||
|
||||
|
@ -36,7 +36,7 @@ commands =
|
|||
basepython = python2.7
|
||||
commands =
|
||||
pip install django>=1.8,<1.9
|
||||
python manage.py test {posargs} --settings=masakaridashboard.test.settings
|
||||
{[testenv]commands}
|
||||
|
||||
[testenv:eslint]
|
||||
whitelist_externals = npm
|
||||
|
|
Loading…
Reference in New Issue