Skip to content

Commit 9311132

Browse files
committed
WIP: add logging for debug pytesst in ci x3 just for pytests
1 parent 6af29c1 commit 9311132

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/integration_tests/pybinds_tests/test_pybind_units.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ def test_DFPointCloud_load_from_PLY():
3939
pc = dfb.dfb_geometry.DFPointCloud()
4040
test_data_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', 'test_data'))
4141
ply_file_path = os.path.join(test_data_dir, "roof_quarter.ply")
42-
print(f"Loading PLY file from: {ply_file_path}")
42+
if not os.path.exists(ply_file_path):
43+
raise FileNotFoundError(f"PLY file not found at: {ply_file_path}")
4344
pc.load_from_PLY(ply_file_path)
4445

4546
assert pc.points.__len__() == 7379, "DFPointCloud should have 7379 points"
@@ -51,6 +52,8 @@ def create_DFPointCloudSampleRoof():
5152
df_pcd = dfb.dfb_geometry.DFPointCloud()
5253
test_data_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', 'test_data'))
5354
ply_file_path = os.path.join(test_data_dir, "roof_quarter.ply")
55+
if not os.path.exists(ply_file_path):
56+
raise FileNotFoundError(f"PLY file not found at: {ply_file_path}")
5457
df_pcd.load_from_PLY(ply_file_path)
5558
yield df_pcd
5659

0 commit comments

Comments
 (0)