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

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2020-09-03 18:13:33 +02:00
1 parent 4ebcbadfc2
commit fbbfd46fb8
3 files changed
+15 -2

No files matched your search

+9
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"