8000 chore: Make requests tests more resilient against broken httpbin · alexmojaki/sentry-python@5b5bf34 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5b5bf34

Browse files
committed
chore: Make requests tests more resilient against broken httpbin
1 parent 1f6743c commit 5b5bf34

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/integrations/requests/test_requests.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ def test_crumb_capture(sentry_init, capture_events):
1111
events = capture_events()
1212

1313
response = requests.get("https://httpbin.org/status/418")
14-
assert response.status_code == 418
1514
capture_message("Testing!")
1615

1716
(event,) = events
@@ -21,6 +20,6 @@ def test_crumb_capture(sentry_init, capture_events):
2120
assert crumb["data"] == {
2221
"url": "https://httpbin.org/status/418",
2322
"method": "GET",
24-
"status_code": 418,
25-
"reason": "I'M A TEAPOT",
23+
"status_code": response.status_code,
24+
"reason": response.reason,
2625
}

0 commit comments

Comments
 (0)
0