forked from websauna/websauna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.ini
98 lines (77 loc) · 2.19 KB
/
test.ini
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
###
# app configuration
# http://docs.pylonsproject.org/projects/pyramid/en/1.5-branch/narr/environment.html
###
[includes]
include_ini_files =
resource://websauna/base.ini
[app:main]
websauna.site_id = websauna_test
websauna.mailer = pyramid_mailer.mailer.DummyMailer
websauna.secrets_file = resource://websauna/test-secrets.ini
websauna.redis_scheduler_database = 15
websauna.sanity_check = false
websauna.error_test_trigger = true
websauna.sample_html_email = true
websauna.test_web_server_port = 8522
pyramid.reload_templates = false
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.default_locale_name = en
# For testing, jinja2.undefined extension is added
jinja.undefined = strict
sqlalchemy.url = postgresql://localhost/websauna_test
# Use different session db for tests
redis.sessions.url = redis://localhost:6379/14
# Change celery to use test Redis db
[celery]
BROKER_URL = redis://localhost:6379/15
CELERY_ALWAYS_EAGER = true
CELERY_EAGER_PROPAGATES_EXCEPTIONS = true
CELERY_RESULT_SERIALIZER=pickle
CELERY_TASK_SERIALIZER=pickle
CELERY_ACCEPT_CONTENT=pickle
###
# wsgi server configuration
###
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
###
# logging configuration
# http://docs.pylonsproject.org/projects/pyramid/en/1.5-branch/narr/logging.html
###
[loggers]
keys = root, websauna, sqlalchemy, celery_worker_job, notfound, internalservererror, notebook, authomatic
[logger_root]
level = INFO
handlers = console
[logger_websauna]
level = WARN
handlers =
qualname = websauna
# Sprouts misc logs about starting and shutting down noteboko
[logger_notebook]
level = WARN
# This is the crucial bit to make sure Celery doesn't silently swallow exceptions
# See https://github.com/celery/celery/issues/2437
# http://stackoverflow.com/a/20719461/315168
[logger_celery_worker_job]
level = INFO
handlers = console
qualname = celery.worker.job
propagate = 1
# Mute error testing
[logger_notfound]
level = ERROR
handlers =
qualname = websauna.system.core.views.notfound
propagate = 0
# Mute error testing
[logger_internalservererror]
level = ERROR
handlers =
qualname = websauna.system.core.views.internalservererror
propagate = 0