Browse Source

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
changes/06/439606/1
Jeremy Liu 5 years ago
parent
commit
cca54ba3e2
  1. 2
      manage.py
  2. 2
      tox.ini

2
manage.py

@ -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)

2
tox.ini

@ -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

Loading…
Cancel
Save