From 391f55bd269c66b4c71259c30f3861b2b20a5804 Mon Sep 17 00:00:00 2001 From: Stefan Allius Date: Sat, 5 Apr 2025 02:13:04 +0200 Subject: [PATCH] set global var test to default after test run --- app/tests/test_inverter_g3.py | 1 + app/tests/test_inverter_g3p.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/app/tests/test_inverter_g3.py b/app/tests/test_inverter_g3.py index e591d04..626ba7d 100644 --- a/app/tests/test_inverter_g3.py +++ b/app/tests/test_inverter_g3.py @@ -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: diff --git a/app/tests/test_inverter_g3p.py b/app/tests/test_inverter_g3p.py index 5b19121..f16a2d8 100644 --- a/app/tests/test_inverter_g3p.py +++ b/app/tests/test_inverter_g3p.py @@ -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