forked from mozilla/webpay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings_test.py
69 lines (52 loc) · 1.77 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
# This file overrides what's in your webpay/settings/local.py while
# testing.
CELERY_ALWAYS_EAGER = True
# This tells the runner to skip the Solitude client lib tests.
# If you set this to a URL it should look like http://localhost:9000
# but you probably don't want to use your local dev server.
SOLITUDE_URL = None
# A bug in jingo, it will only send the signal to allow test cases to properly
# inspect the result if this is set.
TEMPLATE_DEBUG = True
# This is the domain that the tests use, setting this removes a warning that
# persona throws.
SITE_URL = 'http://testserver'
ALLOW_SIMULATE = True
TEST_PIN_UI = False
BROWSERID_DOMAIN = 'nowhereatall.org'
BROWSERID_UNVERIFIED_ISSUER = BROWSERID_DOMAIN
BROWSERID_VERIFICATION_URL = 'https://%s/verify' % BROWSERID_DOMAIN
ONLY_SIMULATIONS = False
USE_PRODUCT_ICONS = True
# Blockage will prevent us calling this, but we should point it to somewhere.
MARKETPLACE_URL = SOLITUDE_URL = 'http://example.com'
# If you want test this, do so explicitly in the tests.
USER_WHITELIST = []
UUID_HMAC_KEY = 'this is a test value'
ALLOW_ADMIN_SIMULATIONS = True
PAYMENT_PROVIDER = 'bango'
PAY_URLS = {
'bango': {
'base': 'http://mozilla.test.bango.org',
'pay': '/mozpayments/?bcid={uid_pay}',
'logout': '/mozpayments/logout/',
},
'reference': {
'base': 'https://zippy.paas.allizom.org',
'pay': '/payment/start?tx={uid_pay}',
'logout': '/users/reset',
},
}
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
}
}
CACHE_PREFIX = 'webpay:test'
SPA_ENABLE = False
SPA_ENABLE_URLS = True
SPARTACUS_BUILD_ID_KEY = 'spartacus-build-id'
SPARTACUS_STATIC = '/mozpay/media'
ALLOW_ANDROID_PAYMENTS = True
SIMULATED_NETWORK = None
IN_TEST_SUITE = True