Skip to content

Commit d1e51c1

Browse files
Update responses/tests/test_responses.py
Co-authored-by: Mark Story <[email protected]>
1 parent 3f7548b commit d1e51c1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

responses/tests/test_responses.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2424,15 +2424,15 @@ def test_adapter_retry_untouched(self):
24242424
@responses.activate(registry=registries.OrderedRegistry)
24252425
def run():
24262426
url = "https://example.com"
2427-
rsp1 = responses.get(url, body="Error", status=500)
2428-
responses.add(rsp1)
2429-
responses.add(rsp1)
2430-
rsp4 = responses.get(url, body="OK", status=200)
2431-
2432-
responses.add(rsp1)
2433-
responses.add(rsp1)
2434-
responses.add(rsp1)
2435-
responses.add(rsp4)
2427+
error_rsp = responses.get(url, body="Error", status=500)
2428+
responses.add(error_rsp)
2429+
responses.add(error_rsp)
2430+
ok_rsp = responses.get(url, body="OK", status=200)
2431+
2432+
responses.add(error_rsp)
2433+
responses.add(error_rsp)
2434+
responses.add(error_rsp)
2435+
responses.add(error_rsp)
24362436

24372437
session = requests.Session()
24382438

0 commit comments

Comments
 (0)