mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Update test_http.py
This commit is contained in:
parent
fd21d6cc9d
commit
7be197b845
@ -42,7 +42,8 @@ def test_forward_request(hassio_client):
|
|||||||
])
|
])
|
||||||
def test_auth_required_forward_request(hassio_noauth_client, build_type):
|
def test_auth_required_forward_request(hassio_noauth_client, build_type):
|
||||||
"""Test auth required for normal request."""
|
"""Test auth required for normal request."""
|
||||||
resp = yield from hassio_noauth_client.post("/api/hassio/{}".format(build_type))
|
resp = yield from hassio_noauth_client.post(
|
||||||
|
"/api/hassio/{}".format(build_type))
|
||||||
|
|
||||||
# Check we got right response
|
# Check we got right response
|
||||||
assert resp.status == 401
|
assert resp.status == 401
|
||||||
|
Loading…
x
Reference in New Issue
Block a user