mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 11:41:49 +02:00
test: fixed default value for scan id
This commit is contained in:
@ -5,7 +5,7 @@ import pytest
|
|||||||
from bec_lib.connector import MessageObject
|
from bec_lib.connector import MessageObject
|
||||||
from bec_lib.messages import ScanMessage
|
from bec_lib.messages import ScanMessage
|
||||||
|
|
||||||
msg = MessageObject(topic="", value=ScanMessage(point_id=0, scan_id=0, data={}))
|
msg = MessageObject(topic="", value=ScanMessage(point_id=0, scan_id="scan_id", data={}))
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(name="consumer")
|
@pytest.fixture(name="consumer")
|
||||||
@ -205,7 +205,7 @@ def test_connect_one_slot_multiple_topics_single_callback(bec_dispatcher, consum
|
|||||||
# Simulate messages being published on each topic
|
# Simulate messages being published on each topic
|
||||||
for topic in topics:
|
for topic in topics:
|
||||||
msg_with_topic = MessageObject(
|
msg_with_topic = MessageObject(
|
||||||
topic=topic, value=ScanMessage(point_id=0, scan_id=0, data={})
|
topic=topic, value=ScanMessage(point_id=0, scan_id="scan_id", data={})
|
||||||
)
|
)
|
||||||
consumer.register.call_args.kwargs["cb"](msg_with_topic)
|
consumer.register.call_args.kwargs["cb"](msg_with_topic)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user