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 4 years ago
parent
commit
cca54ba3e2
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      manage.py
  2. +1
    -1
      tox.ini

+ 1
- 1
manage.py 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)

+ 1
- 1
tox.ini 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


Loading…
Cancel
Save