style(tests): опечатка форматирования req = в test_bad_requests (T1.1, #29)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
960a71d62c
commit
091acda286
@ -158,7 +158,7 @@ def test_bad_requests(hub):
|
|||||||
with pytest.raises(HubError) as e:
|
with pytest.raises(HubError) as e:
|
||||||
c.get("/issues", limit="abc")
|
c.get("/issues", limit="abc")
|
||||||
assert e.value.status == 400
|
assert e.value.status == 400
|
||||||
req =urllib.request.Request(hub["base"] + "/batches", data=b"{not json", method="POST",
|
req = urllib.request.Request(hub["base"] + "/batches", data=b"{not json", method="POST",
|
||||||
headers={"Authorization": "Bearer " + c.token})
|
headers={"Authorization": "Bearer " + c.token})
|
||||||
with pytest.raises(urllib.error.HTTPError) as e2:
|
with pytest.raises(urllib.error.HTTPError) as e2:
|
||||||
urllib.request.urlopen(req)
|
urllib.request.urlopen(req)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user