Add .well-known/password-change (#39613)

This commit is contained in:
Paulus Schoutsen 2020-09-03 18:13:33 +02:00 committed by GitHub
parent 4ebcbadfc2
commit fbbfd46fb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 2 deletions

View file

@ -484,3 +484,12 @@ async def test_get_version(hass, hass_ws_client):
assert msg["type"] == TYPE_RESULT
assert msg["success"]
assert msg["result"] == {"version": cur_version}
async def test_static_paths(hass, mock_http_client):
"""Test static paths."""
resp = await mock_http_client.get(
"/.well-known/change-password", allow_redirects=False
)
assert resp.status == 302
assert resp.headers["location"] == "/profile"