Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit e03c642

Browse files
committed
Correct Flask dsn behavior
1 parent fd05de5 commit e03c642

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

raven/contrib/flask.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def make_client(client_cls, app, dsn=None):
3636
**convert_options(
3737
app.config,
3838
defaults={
39+
'dsn': dsn,
3940
'include_paths': (
4041
set(app.config.get('SENTRY_INCLUDE_PATHS', []))
4142
| set([app.import_name])

tests/contrib/flask/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def test_check_client_type(self):
268268
def test_uses_dsn(self):
269269
app = Flask(__name__)
270270
sentry = Sentry(app, dsn='http://public:[email protected]/1')
271-
assert sentry.client.remote.base_url == 'http://example.com/1'
271+
assert sentry.client.remote.base_url == 'http://example.com'
272272

273273

274274
class FlaskLoginTest(BaseTest):

0 commit comments

Comments
 (0)