diff --git a/pyproject.toml b/pyproject.toml index db5d59c..45a7366 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -138,7 +138,7 @@ manylinux-x86_64-image = "kolinguo/mplib-build:latest" container-engine = { name = "docker", create-args = ["--rm"]} # only run tests on python3.10 test-requires = ["trimesh", "transforms3d"] -test-command = "cd {project} && python3.10 -m unittest discover -s {project}/tests" +test-command = "python3.10 -m unittest discover -s {project}/tests -v" test-skip = ["cp37-*", "cp38-*", "cp39-*", "cp311-*", "cp312-*"] [tool.cibuildwheel.linux] diff --git a/tests/test_planner.py b/tests/test_planner.py index 5d213ed..188876d 100644 --- a/tests/test_planner.py +++ b/tests/test_planner.py @@ -1,13 +1,16 @@ +import os import numpy as np import unittest +from transforms3d.quaternions import mat2quat, quat2mat from mplib import Planner import mplib import trimesh -from transforms3d.quaternions import mat2quat, quat2mat + +FILE_ABS_DIR = os.path.dirname(os.path.abspath(__file__)) PANDA_SPEC = { - "urdf": "data/panda/panda.urdf", - "srdf": "data/panda/panda.srdf", + "urdf": f"{FILE_ABS_DIR}/../data/panda/panda.urdf", + "srdf": f"{FILE_ABS_DIR}/../data/panda/panda.srdf", "move_group": "panda_hand", }