set global var test to default after test run

This commit is contained in:
Stefan Allius
2025-04-05 02:13:04 +02:00
parent 171f5d39a4
commit 391f55bd26
2 changed files with 4 additions and 0 deletions

View File

@@ -155,6 +155,7 @@ async def test_remote_except(config_conn, patch_open_connection):
await asyncio.sleep(0)
assert inverter.remote.stream==None
del inverter
test = MockType.RD_TEST_0_BYTES
cnt = 0
for inv in InverterBase:

View File

@@ -133,6 +133,9 @@ async def test_remote_except(config_conn, patch_open_connection):
await asyncio.sleep(0)
assert inverter.remote.stream==None
test = MockType.RD_TEST_0_BYTES
@pytest.mark.asyncio
async def test_mqtt_publish(config_conn, patch_open_connection):
_ = config_conn