Skip to content

Commit

Permalink
Merge pull request Farama-Foundation#247 from Farama-Foundation/other…
Browse files Browse the repository at this point in the history
…tests

reenable environment specific tests
  • Loading branch information
Kallinteris-Andreas authored Oct 14, 2024
2 parents ce1aa31 + f1ec4d7 commit a65445e
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/envs/franka_kitchen/test_kitchen_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
import gymnasium as gym
import pytest

import gymnasium_robotics
from gymnasium_robotics.envs.franka_kitchen.kitchen_env import (
OBS_ELEMENT_GOALS,
OBS_ELEMENT_INDICES,
)

gym.register_envs(gymnasium_robotics)

TASKS = ["microwave", "kettle"]


Expand Down
3 changes: 3 additions & 0 deletions tests/envs/hand/test_manipulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
import gymnasium as gym
import pytest

import gymnasium_robotics

gym.register_envs(gymnasium_robotics)
ENVIRONMENT_IDS = (
# "HandManipulateEgg-v0",
# "HandManipulatePen-v0",
Expand Down
4 changes: 4 additions & 0 deletions tests/envs/hand/test_manipulate_touch_sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
import gymnasium as gym
import pytest

import gymnasium_robotics

gym.register_envs(gymnasium_robotics)

ENVIRONMENT_IDS = (
"HandManipulateEgg_ContinuousTouchSensors-v1",
"HandManipulatePen_BooleanTouchSensors-v1",
Expand Down
4 changes: 4 additions & 0 deletions tests/envs/hand/test_reach.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

import gymnasium as gym

import gymnasium_robotics

gym.register_envs(gymnasium_robotics)


def test_serialize_deserialize():
env1 = gym.make("HandReach-v2", distance_threshold=1e-6)
Expand Down
4 changes: 4 additions & 0 deletions tests/envs/maze/test_ant_maze.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
import numpy as np
import pytest

import gymnasium_robotics

gym.register_envs(gymnasium_robotics)


@pytest.mark.parametrize("version", ["v4", "v5"])
def test_reset(version):
Expand Down
4 changes: 4 additions & 0 deletions tests/envs/maze/test_point_maze.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import gymnasium as gym
import numpy as np

import gymnasium_robotics

gym.register_envs(gymnasium_robotics)


def test_reset():
"""Check that PointMaze does not reset into a success state."""
Expand Down

0 comments on commit a65445e

Please sign in to comment.