59525185d5
The horizon settings have changed and the corresponding changes were not picked up the trove-dashboard. Import the horizon settings file to prevent code skew and add the panels to the list of installed apps. Once the above was fixed it revealed one code change that was needed due to commit ea0e472edd194243392fd51a5af3a3a77101fddd. The Paginated object was changed in the above commit resulting in the change in the trove.py file. Also changed the test to reflect the new signature. Also changed the tox.ini to be consistent with the horizon tox.ini. Change-Id: Id484fe373b79f00b90ca8b890aa3b9f73a475a50
55 lines
1.5 KiB
INI
55 lines
1.5 KiB
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = py27,pep8,py27dj18
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = {toxinidir}/tools/pip_install.sh unconstrained {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = /bin/bash run_tests.sh -N --no-pep8 {posargs}
|
|
|
|
[testenv:py27]
|
|
setenv = DJANGO_SETTINGS_MODULE=trove_dashboard.test.settings
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
# This target does not use script since we do not need to install horizon.
|
|
install_command = pip install -U --force-reinstall {opts} {packages}
|
|
commands = {posargs}
|
|
|
|
# Django-1.8 is LTS
|
|
[testenv:py27dj18]
|
|
basepython = python2.7
|
|
commands = pip install django>=1.8,<1.9
|
|
/bin/bash run_tests.sh -N --no-pep8 {posargs}
|
|
|
|
[testenv:py27integration]
|
|
basepython = python2.7
|
|
commands = /bin/bash run_tests.sh -N --integration --selenium-headless {posargs}
|
|
|
|
[testenv:cover]
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:debug]
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[testenv:releasenotes]
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
[flake8]
|
|
show-source = True
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
# H405 multi line docstring summary not separated with an empty line
|
|
ignore = E123,E125,H405
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,.ropeproject,tools,releasenotes
|