From c5ef09e882646b0988ae400ce4277aa1a950c932 Mon Sep 17 00:00:00 2001 From: Ivan Kolodyazhny Date: Tue, 11 Sep 2018 16:05:29 -0600 Subject: [PATCH] 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 --- tox.ini | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tox.ini b/tox.ini index cde448c7..bf59df29 100644 --- a/tox.ini +++ b/tox.ini @@ -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