forked from mozilla/airmozilla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings_test.py
85 lines (58 loc) · 1.99 KB
/
settings_test.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
# These settings will always be overriding for all test runs
EMAIL_FROM_ADDRESS = '[email protected]'
PASSWORD_HASHERS = (
'django.contrib.auth.hashers.MD5PasswordHasher',
)
MOZILLIANS_API_APPNAME = 'something'
MOZILLIANS_API_BASE = 'https://shouldneveractuallybeused.net'
MOZILLIANS_API_KEY = 'supersecret'
VIDLY_API_URL = 'http://vid.ly.shouldneveractuallybeused.com/api/'
# So that we never accidentally send tweets during tests
TWITTER_CONSUMER_KEY = \
TWITTER_CONSUMER_SECRET = \
TWITTER_ACCESS_TOKEN = \
TWITTER_ACCESS_TOKEN_SECRET = "test"
TWEETER_BACKEND = None
URL_TRANSFORM_PASSWORDS = {
'bla': 'bla',
}
BITLY_ACCESS_TOKEN = '123456789'
BITLY_URL = 'https://bitly-mock/v3/shorten'
# don't accidentally send anything to sentry whilst running tests
RAVEN_CONFIG = {}
SENTRY_DSN = None
SITE_URL = 'http://localhost:8000'
AWS_ACCESS_KEY_ID = AWS_SECRET_ACCESS_KEY = 'something'
#S3_UPLOAD_BUCKET = 'air-mozilla-uploads'
EDGECAST_SECURE_KEY = 'soemthing'
AKAMAI_SECURE_KEY = 'something'
BROWSERID_AUDIENCES = ['http://testserver']
import tempfile
MEDIA_ROOT = tempfile.mkdtemp(prefix='testmedia')
SCRAPE_CREDENTIALS = {}
LOG_SEARCHES = True
TWITTER_USERNAME = 'airmozilla'
MEDIA_URL = '/media/'
STATIC_URL = '/static/'
VIDLY_BASE_URL = 'https://vid.ly.example'
VIDLY_USER_ID = 'any...'
VIDLY_USER_KEY = '...thing not empty'
EDGECAST_SECURE_KEY = 'anythingheretoo'
ALLOWED_BID = (
'mozilla.com',
)
# Use memcached only for session storage
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
# deliberately set so tests never actually accidentally use it
AUTOCOMPETER_URL = 'https://autocompeter.example/v1'
AUTOCOMPETER_DOMAIN = ''
# make sure these are definitely off
GOD_MODE = False
BROWSERID_DISABLED = False
# Don't actually use celery in tests
CELERY_ALWAYS_EAGER = True
SCREENCAPTURES_NO_PICTURES = 5 # faster
# Deliberately disabled since reducing the size of PNGs
# slows down the tests significantly and we have deliberate
# tests that re-enables it.
PNGQUANT_LOCATION = None