-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtest_settings.py
111 lines (93 loc) · 2.61 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
"""
These settings are here to use during tests, because django requires them.
In a real-world use case, apps in this project are installed into other
Django applications, so these settings will not be used.
"""
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": "default.db",
"USER": "",
"PASSWORD": "",
"HOST": "",
"PORT": "",
},
"read_replica": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": "read_replica.db",
"USER": "",
"PASSWORD": "",
"HOST": "",
"PORT": "",
},
}
INSTALLED_APPS = (
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"platform_plugin_aspects",
)
# Disable caching in tests.
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.dummy.DummyCache",
}
}
ROOT_URLCONF = "platform_plugin_aspects.urls"
SECRET_KEY = "very-insecure-key"
MIDDLEWARE = [
"django.contrib.sessions.middleware.SessionMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
]
EVENT_SINK_CLICKHOUSE_MODEL_CONFIG = {
"user_profile": {
"module": "common.djangoapps.student.models",
"model": "UserProfile",
},
"course_overviews": {
"module": "openedx.core.djangoapps.content.course_overviews.models",
"model": "CourseOverview",
},
}
EVENT_SINK_CLICKHOUSE_COURSE_OVERVIEWS_ENABLED = True
FEATURES = {
"CUSTOM_COURSES_EDX": True,
}
LMS_ROOT_URL = "https://lms.url"
DEBUG = True
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"APP_DIRS": False,
"OPTIONS": {
"context_processors": [
"django.contrib.auth.context_processors.auth", # this is required for admin
"django.contrib.messages.context_processors.messages", # this is required for admin
],
},
}
]
SUPERSET_EXTRA_FILTERS_FORMAT = []
SUPERSET_CONFIG = {
"internal_service_url": "http://superset:8088/",
"service_url": "http://superset-dummy-url",
"username": "superset",
"password": "superset",
}
ASPECTS_INSTRUCTOR_DASHBOARDS = [
{
"name": "Instructor Dashboard",
"slug": "instructor-dashboard",
"uuid": "1d6bf904-f53f-47fd-b1c9-6cd7e284d286",
"allow_translations": True,
}
]
EVENT_SINK_CLICKHOUSE_BACKEND_CONFIG = {
"url": "https://foo.bar",
"username": "bob",
"password": "secret",
"database": "cool_data",
"timeout_secs": 1,
}
SUPERSET_SHOW_INSTRUCTOR_DASHBOARD_LINK = True
SUPERSET_DASHBOARD_LOCALES = ["en_US", "es_419"]