fix full_topic definition in dispatch test
This commit is contained in:
@@ -292,8 +292,8 @@ async def test_msg_dispatch(config_mqtt_conn, spy_modbus_cmd):
|
|||||||
|
|
||||||
# test dispatching with incomplete mapping table - invalid fnc defined
|
# test dispatching with incomplete mapping table - invalid fnc defined
|
||||||
m.topic_defs.append(
|
m.topic_defs.append(
|
||||||
{'prefix': 'entity_prefix', 'topic': '/+/dcu_power',
|
{'prefix': 'entity_prefix', 'topic': '/+/modbus_read_inputs',
|
||||||
'full_topic': 'entity_prefix/+/dcu_power', 'fnc': 'invalid'}
|
'full_topic': 'tsun/+/modbus_read_inputs', 'fnc': 'invalid'}
|
||||||
)
|
)
|
||||||
spy.reset_mock()
|
spy.reset_mock()
|
||||||
msg = aiomqtt.Message(topic= 'tsun/inv_1/modbus_read_inputs', payload= b'0x3000, 10', qos= 0, retain = False, mid= 0, properties= None)
|
msg = aiomqtt.Message(topic= 'tsun/inv_1/modbus_read_inputs', payload= b'0x3000, 10', qos= 0, retain = False, mid= 0, properties= None)
|
||||||
|
|||||||
Reference in New Issue
Block a user