test: add unit tests for main and actuation receivers
Exhaustive test cases for both classes, with 100% coverage. Adds `mock` dependency. Tests for actuation receiver do not yet pass. ref: N25B-168
This commit is contained in:
@@ -12,7 +12,7 @@ class ReceiverBase(SocketBase, object):
|
||||
"""
|
||||
Handle a message with the receiver.
|
||||
|
||||
:param message: The message to handle.
|
||||
:param message: The message to handle, must contain properties "endpoint" and "data".
|
||||
:type message: dict
|
||||
|
||||
:return: A response message or None if this type of receiver doesn't publish.
|
||||
|
||||
@@ -20,7 +20,7 @@ class VideoSender(SocketBase):
|
||||
logging.info("No QI session available, not starting video loop")
|
||||
return
|
||||
|
||||
video = state.session.service("ALVideoDevice")
|
||||
video = state.qi_session.service("ALVideoDevice")
|
||||
|
||||
camera_index = 0
|
||||
kQVGA = 2
|
||||
|
||||
Reference in New Issue
Block a user