forked from openedx/xblock-lti-consumer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_settings.py
More file actions
36 lines (25 loc) · 850 Bytes
/
test_settings.py
File metadata and controls
36 lines (25 loc) · 850 Bytes
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
"""
Custom testing settings for testing views
"""
from workbench.settings import *
# Usage id pattern (from edx-platform)
USAGE_ID_PATTERN = r'(?P<usage_id>(?:i4x://?[^/]+/[^/]+/[^/]+/[^@]+(?:@[^/]+)?)|(?:[^/]+))'
# Keep settings, use different ROOT_URLCONF
ROOT_URLCONF = 'test_urls'
# LMS Urls - for LTI 1.3 testing
LMS_ROOT_URL = "https://example.com"
LMS_BASE = "example.com"
# Dummy FEATURES dict
FEATURES = {}
# Set rest framework settings to test pagination
REST_FRAMEWORK = {
'PAGE_SIZE': 10
}
DEFAULT_HASHING_ALGORITHM = "sha1"
DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
# Platform name for LTI 1.1 and 1.3 claims testing
PLATFORM_NAME = "Your platform name here"
# Learning MFE URL for start assessment testing
LEARNING_MICROFRONTEND_URL = 'http://test.learning:2000'
# Mimic running in Studio
SERVICE_VARIANT = 'cms'