Skip to content

Commit

Permalink
Assertion failed when the camera device not found
Browse files Browse the repository at this point in the history
  • Loading branch information
kadiredd committed Mar 12, 2024
1 parent c0a674c commit 567aaa3
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
'device_type': 'D455',
'pointcloud.enable': 'true'
}
test_params_points_cloud_d435 = {
'camera_name': 'D435',
'device_type': 'D435',
test_params_points_cloud_d435i = {
'camera_name': 'D435I',
'device_type': 'D435I',
'pointcloud.enable': 'true'
}

Expand All @@ -76,7 +76,7 @@
'''
@pytest.mark.parametrize("launch_descr_with_parameters", [
pytest.param(test_params_points_cloud_d455, marks=pytest.mark.d455),
pytest.param(test_params_points_cloud_d435, marks=pytest.mark.d435),
pytest.param(test_params_points_cloud_d435i, marks=pytest.mark.d435i),
pytest.param(test_params_points_cloud_d415, marks=pytest.mark.d415),
],indirect=True)
@pytest.mark.launch(fixture=launch_descr_with_parameters)
Expand All @@ -85,6 +85,7 @@ def test_camera_test_point_cloud(self,launch_descr_with_parameters):
self.params = launch_descr_with_parameters[1]
if pytest_live_camera_utils.check_if_camera_connected(self.params['device_type']) == False:
print("Device not found? : " + self.params['device_type'])
assert False
return
themes = [
{
Expand Down

0 comments on commit 567aaa3

Please sign in to comment.