set global var test to default after test run
This commit is contained in:
@@ -155,6 +155,7 @@ async def test_remote_except(config_conn, patch_open_connection):
|
|||||||
await asyncio.sleep(0)
|
await asyncio.sleep(0)
|
||||||
assert inverter.remote.stream==None
|
assert inverter.remote.stream==None
|
||||||
del inverter
|
del inverter
|
||||||
|
test = MockType.RD_TEST_0_BYTES
|
||||||
|
|
||||||
cnt = 0
|
cnt = 0
|
||||||
for inv in InverterBase:
|
for inv in InverterBase:
|
||||||
|
|||||||
@@ -133,6 +133,9 @@ async def test_remote_except(config_conn, patch_open_connection):
|
|||||||
await asyncio.sleep(0)
|
await asyncio.sleep(0)
|
||||||
assert inverter.remote.stream==None
|
assert inverter.remote.stream==None
|
||||||
|
|
||||||
|
test = MockType.RD_TEST_0_BYTES
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
async def test_mqtt_publish(config_conn, patch_open_connection):
|
async def test_mqtt_publish(config_conn, patch_open_connection):
|
||||||
_ = config_conn
|
_ = config_conn
|
||||||
|
|||||||
Reference in New Issue
Block a user