Add ability to test Manila UI with Horizon master branch

For the developers needs it's useful to be able run tests with the
latest Horizon version from the master branch.

This patch introduces new tox environment py3-dev to run tests with the
Horizon master branch.

By default, Horizon will be installed from the master branch of it's git
repository. You can override this behaviour by setting HORIZON_REPO
environment variable to test the plugin with your local copy.

Change-Id: Iea6e53eb38ac82817ad893770316db49c141644a
This commit is contained in:
Ivan Kolodyazhny 2018-09-11 16:05:29 -06:00
parent 0c34cba856
commit c5ef09e882
1 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,12 @@ setenv = DJANGO_SETTINGS_MODULE=manila_ui.tests.settings
[testenv:py36]
setenv = DJANGO_SETTINGS_MODULE=manila_ui.tests.settings
[testenv:py3-dev]
setenv = DJANGO_SETTINGS_MODULE=manila_ui.tests.settings
commands =
pip install {env:HORIZON_REPO:git+git://git.openstack.org/openstack/horizon}
{[testenv]commands}
[testenv:pep8]
basepython = python3
commands = flake8