Skip to content

Commit 89da7ff

Browse files
committed
Updated tests
1 parent d39e4c8 commit 89da7ff

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/integrations/flask/test_flask.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def index():
285285
try:
286286
raise ValueError("stuff")
287287
except Exception:
288-
logging.exception("stuff happened")
288+
sentry_sdk.capture_exception()
289289
1 / 0
290290

291291
envelopes = capture_envelopes()
@@ -875,7 +875,12 @@ def index():
875875

876876

877877
def test_request_not_modified_by_reference(sentry_init, capture_events, app):
878-
sentry_init(integrations=[flask_sentry.FlaskIntegration()])
878+
sentry_init(
879+
integrations=[
880+
flask_sentry.FlaskIntegration(),
881+
LoggingIntegration(event_level="ERROR"),
882+
]
883+
)
879884

880885
@app.route("/", methods=["POST"])
881886
def index():

0 commit comments

Comments
 (0)