Skip to content

Commit 9907ef9

Browse files
committed
WIP: adding test data env dir
1 parent db28ece commit 9907ef9

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

.github/workflows/test-pass.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
env:
1111
BUILD_TYPE: Release
1212
VCPKG_FILE: c:/vcpkg/scripts/buildsystems/vcpkg.cmake
13+
TEST_DATA_DIR: ${{ github.workspace }}/tests/test_data
1314

1415
jobs:
1516
windows:

tests/integration_tests/pybinds_tests/test_pybind_units.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ def test_DFPointCloud_init():
4545

4646
def test_DFPointCloud_load_from_PLY():
4747
pc = dfb.dfb_geometry.DFPointCloud()
48-
# test_data_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', 'test_data'))
49-
# ply_file_path = os.path.join(test_data_dir, "roof_quarter.ply")
50-
# if not os.path.exists(ply_file_path):
51-
# raise FileNotFoundError(f"PLY file not found at: {ply_file_path}")
5248
pc.load_from_PLY(get_ply_cloud_roof_quarter_path())
5349

5450
assert pc.points.__len__() == 7379, "DFPointCloud should have 7379 points"
@@ -58,10 +54,6 @@ def test_DFPointCloud_load_from_PLY():
5854
@pytest.fixture
5955
def create_DFPointCloudSampleRoof():
6056
df_pcd = dfb.dfb_geometry.DFPointCloud()
61-
# test_data_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', 'test_data'))
62-
# ply_file_path = os.path.join(test_data_dir, "roof_quarter.ply")
63-
# if not os.path.exists(ply_file_path):
64-
# raise FileNotFoundError(f"PLY file not found at: {ply_file_path}")
6557
df_pcd.load_from_PLY(get_ply_cloud_roof_quarter_path())
6658
yield df_pcd
6759

0 commit comments

Comments
 (0)