Correct the actual path for setting DJANGO_SETTINGS_MODULE

The true path should be "manila_ui.tests.settings" while
"manila_ui.test.settings" is given.

Change-Id: I2510174b6790aa6defaed5b8bf804875eb888ebc
Closes-Bug: #1668990
(cherry picked from commit cca54ba3e2)
This commit is contained in:
Jeremy Liu 2017-03-01 21:58:47 +08:00 committed by Tom Barron
parent 2e2ae51e37
commit 0934c591ff
2 changed files with 2 additions and 2 deletions

View File

@ -19,5 +19,5 @@ from django.core.management import execute_from_command_line
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE",
"manila_ui.test.settings")
"manila_ui.tests.settings")
execute_from_command_line(sys.argv)

View File

@ -13,7 +13,7 @@ deps = -r{toxinidir}/requirements.txt
commands = /bin/bash run_tests.sh -N --no-pep8 {posargs}
[testenv:py27]
setenv = DJANGO_SETTINGS_MODULE=manila_ui.test.settings
setenv = DJANGO_SETTINGS_MODULE=manila_ui.tests.settings
[testenv:pep8]
commands = flake8