1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-27 09:25:10 +03:00

make test database use sqlite

This commit is contained in:
Michael DeHaan 2013-03-19 10:27:14 -04:00
parent cf995c302e
commit 23e685bba8
2 changed files with 13 additions and 4 deletions

View File

@ -19,6 +19,15 @@ DATABASES = {
}
}
if 'test' in sys.argv:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'acom.sqlite3'),
}
}
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.

View File

@ -29,10 +29,10 @@ DATABASES = {
}
}
if 'test' in sys.argv:
DATABASES['default'] = {
'ENGINE': 'django.db.backends.sqlite3'
}
#if 'test' in sys.argv:
# DATABASES['default'] = {
# 'ENGINE': 'django.db.backends.sqlite3'
# }
# Internationalization
# https://docs.djangoproject.com/en/dev/topics/i18n/