Adjust serializing resolved media (#67240)

This commit is contained in:
Paulus Schoutsen 2022-02-25 10:00:03 -08:00 committed by GitHub
parent 07a792019e
commit 6fd9e71b8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 18 deletions

View file

@ -187,7 +187,8 @@ async def test_websocket_resolve_media(hass, hass_ws_client, filename):
assert msg["id"] == 1
assert msg["result"]["mime_type"] == media.mime_type
# Validate url is signed.
# Validate url is relative and signed.
assert msg["result"]["url"][0] == "/"
parsed = yarl.URL(msg["result"]["url"])
assert parsed.path == getattr(media, "url")
assert "authSig" in parsed.query