Fix tests due to yarl URL str output change (#1112)

Latest versions of yarl>=1.9.5 omit the port 80 when calling str(url) which broke tests.
This commit is contained in:
Steven B.
2024-09-06 15:27:23 +01:00
committed by GitHub
parent b0d0c4b703
commit 1773f98aad
2 changed files with 9 additions and 9 deletions

View File

@@ -460,7 +460,7 @@ class MockAesDevice:
elif json["method"] == "login_device":
return await self._return_login_response(url, json)
else:
assert str(url) == f"http://{self.host}:80/app?token={self.token}"
assert url == URL(f"http://{self.host}:80/app?token={self.token}")
return await self._return_send_response(url, json)
async def _return_handshake_response(self, url: URL, json: dict[str, Any]):