fix deprecated pytest async warning

- Cleanup pending async tasks
- fix deprecated warning about event_loop
This commit is contained in:
Stefan Allius
2025-05-07 23:37:24 +02:00
parent b321cfce0f
commit e1f0aac9bf
8 changed files with 207 additions and 99 deletions

View File

@@ -1048,7 +1048,8 @@ def msg_inverter_ms3000_ind(): # Data indication from the controller
msg += b'\x53\x00\x66' # | S.f'
return msg
def test_read_message(msg_contact_info):
@pytest.mark.asyncio
async def test_read_message(msg_contact_info):
Config.act_config = {'tsun':{'enabled': True}}
m = MemoryStream(msg_contact_info, (0,))
m.read() # read complete msg, and dispatch msg