Skip to content

Commit 6af29c1

Browse files
committed
WIP: add logging for debug pytesst in ci x2 just for pytests
1 parent 28f6cd3 commit 6af29c1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/integration_tests/pybinds_tests/test_pybind_units.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def test_DFPointCloud_init():
3737

3838
def test_DFPointCloud_load_from_PLY():
3939
pc = dfb.dfb_geometry.DFPointCloud()
40-
ply_file_path = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), "test_data", "roof_quarter.ply")
40+
test_data_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', 'test_data'))
41+
ply_file_path = os.path.join(test_data_dir, "roof_quarter.ply")
4142
print(f"Loading PLY file from: {ply_file_path}")
4243
pc.load_from_PLY(ply_file_path)
4344

@@ -48,7 +49,8 @@ def test_DFPointCloud_load_from_PLY():
4849
@pytest.fixture
4950
def create_DFPointCloudSampleRoof():
5051
df_pcd = dfb.dfb_geometry.DFPointCloud()
51-
ply_file_path = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), "test_data", "roof_quarter.ply")
52+
test_data_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', 'test_data'))
53+
ply_file_path = os.path.join(test_data_dir, "roof_quarter.ply")
5254
df_pcd.load_from_PLY(ply_file_path)
5355
yield df_pcd
5456

0 commit comments

Comments
 (0)