blob: 0a9221e0ab06d8a096c6fbf2287ea4eb8dc74ac7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
from __future__ import absolute_import
from raven.utils.conf import convert_options
def test_convert_options_parses_dict():
options = convert_options({
'SENTRY_FOO': 'foo',
'FOO': 'bar',
'SENTRY_RELEASE': 'a',
'SENTRY_IGNORE_EXCEPTIONS': [
'b',
]
}, defaults={'environment': 'production'})
assert options['release'] == 'a'
assert options['ignore_exceptions'] == [
'b',
]
assert options['environment'] == 'production'
|