NewsBlur/utils/test-settings.py

36 lines
828 B
Python
Raw Normal View History

from settings import *
DATABASES = {
'default': {
2012-11-27 16:22:03 -08:00
'NAME': 'memory',
2016-04-22 20:47:31 -07:00
'TEST_NAME': ':memory:',
'ENGINE': 'django.db.backends.sqlite3',
'USER': 'newsblur',
'PASSWORD': '',
'HOST': '127.0.0.1',
}
}
2016-04-22 20:47:31 -07:00
# DATABASES = {
# 'default':{
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': ':memory:',
# 'TEST_NAME': ':memory:',
# },
# }
MONGO_DB = {
2012-11-27 16:22:03 -08:00
'name': 'newsblur_test',
'host': '127.0.0.1:27017',
}
2012-11-27 16:22:03 -08:00
MONGO_DATABASE_NAME = 'test_newsblur'
TEST_DATABASE_NAME = ":memory:"
2016-04-22 20:47:31 -07:00
SOUTH_TESTS_MIGRATE = False
2012-03-06 16:11:27 -08:00
DAYS_OF_UNREAD = 9999
TEST_DEBUG = True
DEBUG = True
2012-11-27 16:22:03 -08:00
SITE_ID = 2
RAVEN_CLIENT = None
# from django.db import connection
# cursor = connection.cursor()
# cursor.execute('PRAGMA temp_store = MEMORY;')
# cursor.execute('PRAGMA synchronous=OFF')