Update settings template to use SQLite test database when running acom_inventory script in tests, initial stub for callback event logger.

This commit is contained in:
Chris Church
2013-04-02 14:53:52 -04:00
parent 63ef048d73
commit 0155f0acea
7 changed files with 116 additions and 25 deletions

View File

@@ -36,7 +36,7 @@ DATABASES = {
}
}
if 'test' in sys.argv:
if 'test' in sys.argv or 'ACOM_TEST_DATABASE_NAME' in os.environ:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',