Some checks failed
nightly / Test against latest dependencies (py3.10) (push) Has been cancelled
nightly / Test against latest dependencies (py3.13) (push) Has been cancelled
tests / tests (3.13, locked) (push) Has been cancelled
tests / tests (3.13, unlocked) (push) Has been cancelled
tests / pyright (3.10) (push) Has been cancelled
tests / lint-format (push) Has been cancelled
tests / tests (3.10, locked) (push) Has been cancelled
tests / tests (3.11, locked) (push) Has been cancelled
tests / tests (3.12, locked) (push) Has been cancelled
tests / pyright (3.11) (push) Has been cancelled
tests / pyright (3.12) (push) Has been cancelled
tests / pyright (3.13) (push) Has been cancelled
tests / ty-check (3.10) (push) Has been cancelled
tests / ty-check (3.11) (push) Has been cancelled
tests / ty-check (3.12) (push) Has been cancelled
tests / ty-check (3.13) (push) Has been cancelled
tests / stubs (push) Has been cancelled
tests / smoke-test (push) Has been cancelled
Docker / check_paths (push) Has been cancelled
docs / build (push) Has been cancelled
Docker / build (push) Has been cancelled
Upstream: https://github.com/michaelgillett/mjlab Upstream-Commit: c19f713c415a699a79d71cd96aa13c3104a05047 Upstream-Branch: main
19 lines
504 B
Python
19 lines
504 B
Python
import mujoco
|
|
import pytest
|
|
|
|
from mjlab.asset_zoo.robots import get_g1_robot_cfg, get_go1_robot_cfg
|
|
from mjlab.entity import Entity
|
|
|
|
|
|
@pytest.mark.parametrize(
|
|
"robot_name,robot_cfg_fn",
|
|
[
|
|
("G1", get_g1_robot_cfg),
|
|
("GO1", get_go1_robot_cfg),
|
|
],
|
|
)
|
|
def test_robot_compiles_parametrized(robot_name: str, robot_cfg_fn) -> None:
|
|
"""Tests that all robots in the asset zoo compile without errors."""
|
|
robot_cfg = robot_cfg_fn()
|
|
assert isinstance(Entity(robot_cfg).compile(), mujoco.MjModel)
|