RLBench-lift3d / tests /unit /test_examples.py
zym11111's picture
Add RLBench 1.2.0 (LIFT3D third_party snapshot)
1233cbc verified
Raw
History Blame Contribute Delete
422 Bytes
import pytest
from pathlib import Path
@pytest.fixture
def root_dir():
return Path(__file__).parents[2]
@pytest.fixture(autouse=True)
def chdir_to_root(root_dir, monkeypatch):
monkeypatch.chdir(root_dir)
@pytest.mark.parametrize("script_file", ["rlbench_gym.py", "rlbench_gym_vector.py"])
def test_example(script_file):
import subprocess
subprocess.run(["python", f"examples/{script_file}"], check=True)