mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-12-20 11:40:13 +00:00
use asyncio.run in tests instead of awaiting
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import asyncio
|
||||
import datetime
|
||||
|
||||
from unittest.mock import patch
|
||||
@@ -63,7 +64,7 @@ def test_invalid_connection(dev):
|
||||
|
||||
def test_query_helper(dev):
|
||||
with pytest.raises(SmartDeviceException):
|
||||
dev._query_helper("test", "testcmd", {})
|
||||
asyncio.run(dev._query_helper("test", "testcmd", {}))
|
||||
# TODO check for unwrapping?
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user