Skip to content

Commit b37fbba

Browse files
committed
fix remaining tests
1 parent 3d8a2cc commit b37fbba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/integrations/logging/test_logging.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ def test_custom_log_level_names(sentry_init, capture_events):
126126
levels = {
127127
logging.DEBUG: "debug",
128128
logging.INFO: "info",
129-
logging.WARN: "warning",
130-
logging.WARNING: "warning",
129+
logging.WARN: "warn",
130+
logging.WARNING: "warn",
131131
logging.ERROR: "error",
132132
logging.CRITICAL: "fatal",
133133
logging.FATAL: "fatal",
@@ -199,7 +199,7 @@ def test_logging_captured_warnings(sentry_init, capture_events, recwarn):
199199

200200
assert len(events) == 2
201201

202-
assert events[0]["level"] == "warning"
202+
assert events[0]["level"] == "warn"
203203
# Captured warnings start with the path where the warning was raised
204204
assert "UserWarning: first" in events[0]["logentry"]["message"]
205205
assert "UserWarning: first" in events[0]["logentry"]["formatted"]

0 commit comments

Comments
 (0)