forked from samuelclay/NewsBlur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_settings.py
56 lines (45 loc) · 1.18 KB
/
test_settings.py
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
47
48
49
50
51
52
53
54
55
56
import os
DOCKERBUILD = os.getenv("DOCKERBUILD")
from newsblur_web.settings import *
DATABASES["default"]["ENGINE"] = "django.db.backends.sqlite3"
DATABASES["default"]["OPTIONS"] = {}
DATABASES["default"]["NAME"] = "nb.db"
DATABASES["default"]["TEST_NAME"] = os.path.join(BASE_DIR, "db.sqlite3.test")
# DATABASES['default'] = {
# 'NAME': 'newslur',
# 'ENGINE': 'django.db.backends.postgresql_psycopg2',
# 'USER': 'newsblur',
# 'PASSWORD': 'newsblur',
# 'HOST': 'localhost',
# }
LOGGING_CONFIG = None
# DATABASES = {
# 'default':{
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': ':memory:',
# 'TEST_NAME': ':memory:',
# },
# }
if DOCKERBUILD:
MONGO_PORT = 29019
MONGO_DB = {
"name": "newsblur_test",
"host": "db_mongo:29019",
}
else:
MONGO_PORT = 27017
MONGO_DB = {
"name": "newsblur_test",
"host": "127.0.0.1:27017",
}
SERVER_NAME
MONGO_DATABASE_NAME = "test_newsblur"
SOUTH_TESTS_MIGRATE = False
DAYS_OF_UNREAD = 9999
DAYS_OF_UNREAD_FREE = 9999
TEST_DEBUG = True
DEBUG = True
SITE_ID = 2
SENTRY_DSN = None
HOMEPAGE_USERNAME = "conesus"
SERVER_NAME = "test_newsblur"