mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-26 21:19:35 +00:00
* aruco_pose: use pytest * Use ros_pytest * Add ros_pytest to rosdep * aruco_pose: compare floats more roughly in pytest * aruco_pose: rewrite all the rest tests in pytest
14 lines
355 B
Python
Executable File
14 lines
355 B
Python
Executable File
import rospy
|
|
import pytest
|
|
|
|
from visualization_msgs.msg import MarkerArray as VisMarkerArray
|
|
|
|
|
|
@pytest.fixture
|
|
def node():
|
|
return rospy.init_node('aruco_pose_test', anonymous=True)
|
|
|
|
def test_node_failure(node):
|
|
with pytest.raises(rospy.exceptions.ROSException):
|
|
rospy.wait_for_message('aruco_map/visualization', VisMarkerArray, timeout=5)
|