fancy_gym/test/test_replanning_envs.py

24 lines
682 B
Python
Raw Normal View History

from itertools import chain
import pytest
import fancy_gym
from test.utils import run_env, run_env_determinism
Fancy_ProDMP_IDS = fancy_gym.ALL_FANCY_MOVEMENT_PRIMITIVE_ENVIRONMENTS['ProDMP']
All_ProDMP_IDS = fancy_gym.ALL_MOVEMENT_PRIMITIVE_ENVIRONMENTS['ProDMP']
2022-10-26 15:18:37 +02:00
@pytest.mark.parametrize('env_id', Fancy_ProDMP_IDS)
2022-10-26 15:18:37 +02:00
def test_replanning_envs(env_id: str):
"""Tests that ProDMP environments run without errors using random actions."""
2022-10-26 15:18:37 +02:00
run_env(env_id, iterations=4)
# @pytest.mark.parametrize('env_id', All_ProDMP_IDS)
# def test_replanning_determinism(env_id: str):
# """Tests that ProDMP environments are deterministic."""
# run_env_determinism(env_id, 0)