From f951f5ea8b2a6c74a0d3e35d657e772a8183aff0 Mon Sep 17 00:00:00 2001 From: Xinsong Lin Date: Fri, 26 Jan 2024 10:36:18 -0800 Subject: [PATCH] this is going to work --- pyproject.toml | 2 +- tests/test_planner.py | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) 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", }