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:
parent
cf995c302e
commit
23e685bba8
@ -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.
|
||||
|
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user