NewsBlur/utils/test_settings.py

35 lines
883 B
Python
Raw Normal View History

import sys
from settings import *
2016-04-22 20:47:31 -07:00
# if 'test' in sys.argv:
# DATABASES['default']['ENGINE'] = 'django.db.backends.sqlite3'
# DATABASES['default']['OPTIONS'] = {}
# # DATABASES['default']['NAME'] = 'nb.db'
# # DATABASES['default']['TEST_NAME'] = 'nb2.db'
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
DAYS_OF_UNREAD_FREE = 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')