From cfe13a01d18316d8bfa6d21f8d9dec27cb08b852 Mon Sep 17 00:00:00 2001 From: Stefan Allius Date: Mon, 5 May 2025 23:50:20 +0200 Subject: [PATCH] define config in test_emu_init_close --- app/tests/test_solarman_emu.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/tests/test_solarman_emu.py b/app/tests/test_solarman_emu.py index a62fbdc..9d09d71 100644 --- a/app/tests/test_solarman_emu.py +++ b/app/tests/test_solarman_emu.py @@ -125,10 +125,8 @@ def heartbeat_ind(): msg = b'\xa5\x01\x00\x10G\x00\x01\x00\x00\x00\x00\x00Y\x15' return msg -def test_emu_init_close(): - # received a message with wrong start byte plus an valid message - # the complete receive buffer must be cleared to - # find the next valid message +def test_emu_init_close(config_tsun_inv1): + _ = config_tsun_inv1 inv = InvStream() cld = CldStream(inv) cld.close()