Skip to content

Commit

Permalink
Merge pull request #243 from Farama-Foundation/Kallinteris-Andreas-pa…
Browse files Browse the repository at this point in the history
…tch-3

re-enable disabled  `test_envs.py` (`mujoco` only)
  • Loading branch information
Kallinteris-Andreas authored Oct 11, 2024
2 parents 2d3e0df + bed003e commit 1f8bdd5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
from gymnasium.error import Error
from gymnasium.utils.env_checker import check_env, data_equivalence

import gymnasium_robotics
from tests.utils import all_testing_env_specs, assert_equals

gym.register_envs(gymnasium_robotics)

CHECK_ENV_IGNORE_WARNINGS = [
f"\x1b[33mWARN: {message}\x1b[0m"
for message in [
Expand All @@ -27,7 +30,7 @@


@pytest.mark.parametrize(
"spec", all_testing_env_specs, ids=[spec.id for spec in all_testing_env_specs]
"spec", non_mujoco_py_env_specs, ids=[spec.id for spec in non_mujoco_py_env_specs]
)
def test_env(spec):
# Capture warnings
Expand All @@ -50,7 +53,7 @@ def test_env(spec):


@pytest.mark.parametrize(
"env_spec", all_testing_env_specs, ids=[env.id for env in all_testing_env_specs]
"env_spec", non_mujoco_py_env_specs, ids=[env.id for env in non_mujoco_py_env_specs]
)
def test_env_determinism_rollout(env_spec: EnvSpec):
"""Run a rollout with two environments and assert equality.
Expand Down

0 comments on commit 1f8bdd5

Please sign in to comment.