mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-18 21:38:02 +00:00
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:
@@ -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]):
|
||||
|
Reference in New Issue
Block a user