mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 19:37:38 -02:30
Fixed test database name in app setup template.
This commit is contained in:
@@ -41,6 +41,8 @@ if 'test' in sys.argv:
|
|||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.sqlite3',
|
'ENGINE': 'django.db.backends.sqlite3',
|
||||||
'NAME': os.path.join(BASE_DIR, 'acom.sqlite3'),
|
'NAME': os.path.join(BASE_DIR, 'acom.sqlite3'),
|
||||||
|
# Test database cannot be :memory: for celery/inventory tests to work.
|
||||||
|
'TEST_NAME': os.path.join(BASE_DIR, 'acom_test.sqlite3'),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -56,11 +56,6 @@ DATABASES = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 'test' in sys.argv:
|
|
||||||
# DATABASES['default'] = {
|
|
||||||
# 'ENGINE': 'django.db.backends.sqlite3'
|
|
||||||
# }
|
|
||||||
|
|
||||||
# Internationalization
|
# Internationalization
|
||||||
# https://docs.djangoproject.com/en/dev/topics/i18n/
|
# https://docs.djangoproject.com/en/dev/topics/i18n/
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user