From d5e704b5937b8bebd74629154be656a0e1f0ea36 Mon Sep 17 00:00:00 2001 From: Krzysztof Wojciechowski Date: Wed, 30 Oct 2024 19:06:16 +0000 Subject: [PATCH] Fix frame names in tests --- happypose_ros/test/test_multi_view_integration.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/happypose_ros/test/test_multi_view_integration.py b/happypose_ros/test/test_multi_view_integration.py index 935fb60..a908220 100644 --- a/happypose_ros/test/test_multi_view_integration.py +++ b/happypose_ros/test/test_multi_view_integration.py @@ -206,7 +206,7 @@ def test_07_check_detection(self) -> None: def test_08_check_not_published_transforms(self) -> None: self.assertFalse( - self.node.can_transform("cam_1", "cam2"), + self.node.can_transform("cam_1", "cam_2"), msg="`cam_2` frame_id was was published even thought it shouldn't!", ) @@ -251,7 +251,7 @@ def test_10_dynamic_params_change_frame_id(self) -> None: self.push_data() self.assertFalse( - self.node.can_transform("cam_1", "cam3"), + self.node.can_transform("cam_1", "cam_3"), msg="`cam_3` frame_id was was published even thought it shouldn't!", ) self.assertTrue( @@ -283,6 +283,10 @@ def test_11_dynamic_params_change_frame_id_to_empty(self) -> None: self.push_data() + self.assertFalse( + self.node.can_transform("cam_1", "custom_cam_3_frame_id"), + msg="`custom_cam_3_frame_id` frame_id was was published even thought it shouldn't!", + ) self.assertTrue( self.node.can_transform("cam_1", "cam_3"), msg="`cam_3` frame_id was not published!",