2012-10-04 22:49:26 +02:00
|
|
|
from settings import *
|
2013-01-10 19:05:53 +01:00
|
|
|
import os
|
2012-10-02 17:57:46 +02:00
|
|
|
|
2012-11-09 18:13:16 +01:00
|
|
|
DATABASES["default"] = {"NAME": "zephyr/tests/zephyrdb.test",
|
|
|
|
"ENGINE": "django.db.backends.sqlite3",
|
|
|
|
"OPTIONS": { "timeout": 20, },}
|
|
|
|
|
2013-01-10 19:05:53 +01:00
|
|
|
if "TORNADO_SERVER" in os.environ:
|
|
|
|
TORNADO_SERVER = os.environ["TORNADO_SERVER"]
|
|
|
|
else:
|
|
|
|
TORNADO_SERVER = None
|
2012-12-11 18:12:40 +01:00
|
|
|
|
|
|
|
# Decrease the get_updates timeout to 1 second.
|
|
|
|
# This allows CasperJS to proceed quickly to the next test step.
|
|
|
|
POLL_TIMEOUT = 1000
|
2013-01-09 00:10:37 +01:00
|
|
|
|
|
|
|
# Disable desktop notifications because CasperJS can't handle them;
|
|
|
|
# window.webkitNotifications.requestPermission() throws a type error
|
|
|
|
ENABLE_NOTIFICATIONS = False
|
2013-01-10 19:05:53 +01:00
|
|
|
|
|
|
|
# Don't use the real message log for tests
|
|
|
|
MESSAGE_LOG = "/tmp/test-message-log"
|
|
|
|
|
|
|
|
# Print our emails rather than sending them
|
|
|
|
EMAIL_BACKEND = 'django.core.mail.backends.locmem.EmailBackend'
|