style(tests): опечатка форматирования req = в test_bad_requests (T1.1, #29)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Andrey Epifancev 2026-10-15 01:21:50 +04:00
parent 960a71d62c
commit 091acda286

View File

@ -158,7 +158,7 @@ def test_bad_requests(hub):
with pytest.raises(HubError) as e:
c.get("/issues", limit="abc")
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})
with pytest.raises(urllib.error.HTTPError) as e2:
urllib.request.urlopen(req)