mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Encapsulate http client dependency (#642)
* Encapsulate http client dependency * Store cookie dict as variable * Update post-review
This commit is contained in:
@@ -145,7 +145,7 @@ async def test_connect_http_client(all_fixture_data, mocker):
|
||||
)
|
||||
dev = await connect(config=config)
|
||||
if ctype.encryption_type != EncryptType.Xor:
|
||||
assert dev.protocol._transport._http_client != http_client
|
||||
assert dev.protocol._transport._http_client.client != http_client
|
||||
|
||||
config = DeviceConfig(
|
||||
host=host,
|
||||
@@ -155,4 +155,4 @@ async def test_connect_http_client(all_fixture_data, mocker):
|
||||
)
|
||||
dev = await connect(config=config)
|
||||
if ctype.encryption_type != EncryptType.Xor:
|
||||
assert dev.protocol._transport._http_client == http_client
|
||||
assert dev.protocol._transport._http_client.client == http_client
|
||||
|
Reference in New Issue
Block a user