web-app-followups: 46 отложенных пунктов веб-приложения (#29) #33
@ -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