Use underscore instead of dash in the file name for the test settings.
Also fix the import of the settings module.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
$ . oe-init-build-env
$ cd bitbake/lib/toaster/ # path my vary but this is into toaster's directory
-$ DJANGO_SETTINGS_MODULE='toastermain.settings-test' ./manage.py test tests.builds
+$ DJANGO_SETTINGS_MODULE='toastermain.settings_test' ./manage.py test tests.builds
Optional environment variables:
- TOASTER_DIR (where toaster keeps it's artifacts)
# Settings overlay to use for running tests
# DJANGO_SETTINGS_MODULE=toastermain.settings-test
-from settings import *
+from toastermain.settings import *
DEBUG = True
TEMPLATE_DEBUG = DEBUG