Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-enable environment specific tests #247

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading