From c1e114447ad6e06423c37b08a958154a9e4de7f7 Mon Sep 17 00:00:00 2001 From: Stefan Allius Date: Sun, 14 Apr 2024 14:39:01 +0200 Subject: [PATCH] rename unit test files for GEN3 --- app/tests/{test_infos.py => test_infos_g3.py} | 0 app/tests/{test_messages.py => test_talent.py} | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) rename app/tests/{test_infos.py => test_infos_g3.py} (100%) rename app/tests/{test_messages.py => test_talent.py} (99%) diff --git a/app/tests/test_infos.py b/app/tests/test_infos_g3.py similarity index 100% rename from app/tests/test_infos.py rename to app/tests/test_infos_g3.py diff --git a/app/tests/test_messages.py b/app/tests/test_talent.py similarity index 99% rename from app/tests/test_messages.py rename to app/tests/test_talent.py index 0b75dbe..89fd420 100644 --- a/app/tests/test_messages.py +++ b/app/tests/test_talent.py @@ -679,7 +679,7 @@ def test_msg_ota_invalid(ConfigTsunInv1, MsgOtaInvalid): def test_msg_unknown(ConfigTsunInv1, MsgUnknown): ConfigTsunInv1 m = MemoryStream(MsgUnknown, (0,), False) - m.db.stat['proxy']['Unknown_Ctrl'] = 0 + m.db.stat['proxy']['Unknown_Msg'] = 0 m.read() # read complete msg, and dispatch msg assert not m.header_valid # must be invalid, since msg was handled and buffer flushed assert m.msg_count == 1 @@ -716,6 +716,8 @@ def test_msg_iterator(): test1+=1 elif key == m2: test2+=1 + elif type(key) != Talent: + continue else: assert False assert test1 == 1