blob: 0f1418d4b07d4289b6fdba706470a77b0e5508a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Django settings for test server.
import os
from settings import *
from utils.mongo_connection import register_connection
DEBUG = True
MONGO_SETTINGS = {
'ALIAS': 'default',
'NAME': 'test_dev_polls',
'USER': '',
'PASSWORD': '',
'HOST': '127.0.0.1',
'PORT': 27017,
}
register_connection(
alias=MONGO_SETTINGS['ALIAS'],
name=MONGO_SETTINGS['NAME'],
host=MONGO_SETTINGS['HOST'],
port=MONGO_SETTINGS['PORT'],
)
LETTUCE_SERVER_PORT = 63001
DATABASES['default']['TEST_NAME'] = '/tmp/testserver.db'
RESULT_BCK_ROOT = '/tmp/results_bck'
class MockClock(object):
@staticmethod
def get_time_string():
return "31/12/1999 23:59hs"
CLOCK_CLASS = "webapp.test_settings.MockClock"
IMAGE_OPTIONS_ROOT = os.path.join(MEDIA_ROOT, 'test')
|