diff options
author | Michael Wood <michael.g.wood@intel.com> | 2016-06-13 14:29:30 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-15 08:35:06 +0100 |
commit | 234a625f40523032cc2fcd762558627fd9ef112a (patch) | |
tree | c3283fae8af8fabe89f5f1e21d024d25972d0a82 /bitbake/lib/toaster/toastermain/settings_test.py | |
parent | 000d724312b57d8c737593cb9e05aba2cf9c7d5f (diff) | |
download | poky-234a625f40523032cc2fcd762558627fd9ef112a.tar.gz |
bitbake: toaster: tests Rename test settings to python compliant name and fix import
Use underscore instead of dash in the file name for the test settings.
Also fix the import of the settings module.
(Bitbake rev: 0bdfcafdd1e2ebc10dc0cd343c8bb77f09a71c90)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastermain/settings_test.py')
-rw-r--r-- | bitbake/lib/toaster/toastermain/settings_test.py | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastermain/settings_test.py b/bitbake/lib/toaster/toastermain/settings_test.py new file mode 100644 index 0000000000..a322711579 --- /dev/null +++ b/bitbake/lib/toaster/toastermain/settings_test.py | |||
@@ -0,0 +1,41 @@ | |||
1 | # | ||
2 | # ex:ts=4:sw=4:sts=4:et | ||
3 | # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- | ||
4 | # | ||
5 | # BitBake Toaster Implementation | ||
6 | # | ||
7 | # Copyright (C) 2016 Intel Corporation | ||
8 | # | ||
9 | # This program is free software; you can redistribute it and/or modify | ||
10 | # it under the terms of the GNU General Public License version 2 as | ||
11 | # published by the Free Software Foundation. | ||
12 | # | ||
13 | # This program is distributed in the hope that it will be useful, | ||
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | # GNU General Public License for more details. | ||
17 | # | ||
18 | # You should have received a copy of the GNU General Public License along | ||
19 | # with this program; if not, write to the Free Software Foundation, Inc., | ||
20 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
21 | |||
22 | # Django settings for Toaster project. | ||
23 | |||
24 | # Settings overlay to use for running tests | ||
25 | # DJANGO_SETTINGS_MODULE=toastermain.settings-test | ||
26 | |||
27 | from toastermain.settings import * | ||
28 | |||
29 | DEBUG = True | ||
30 | TEMPLATE_DEBUG = DEBUG | ||
31 | |||
32 | DATABASES = { | ||
33 | 'default': { | ||
34 | 'ENGINE': 'django.db.backends.sqlite3', | ||
35 | 'NAME': '/tmp/toaster-test-db.sqlite', | ||
36 | 'TEST': { | ||
37 | 'ENGINE': 'django.db.backends.sqlite3', | ||
38 | 'NAME': '/tmp/toaster-test-db.sqlite', | ||
39 | } | ||
40 | } | ||
41 | } | ||