Skip to content

Commit

Permalink
Add width and height arguments to mujoco rendering max geoms test
Browse files Browse the repository at this point in the history
  • Loading branch information
guyazran committed Oct 5, 2023
1 parent b5d8bc6 commit f8ae8f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/envs/mujoco/test_mujoco_rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ def test_max_geom_attribute(
"""Test that the max_geom attribute is set correctly."""

# initialize renderer
renderer = ExposedViewerRenderer(model, data, max_geom=max_geom)
renderer = ExposedViewerRenderer(
model, data, width=DEFAULT_SIZE, height=DEFAULT_SIZE, max_geom=max_geom
)

# assert max_geom attribute
assert renderer.max_geom == max_geom
Expand Down

0 comments on commit f8ae8f4

Please sign in to comment.