Skip to content

Commit

Permalink
mark hwp supervisor tests as integtest
Browse files Browse the repository at this point in the history
  • Loading branch information
jlashner committed Dec 17, 2024
1 parent 143e679 commit bce28e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/integration/test_hwp_supervisor_agent_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def hwp_em() -> Generator[HWPEmulator, None, None]:
em.shutdown()



def _shutdown_agent_runner(runner: _AgentRunner) -> None:
"""
Shutdown the agent process using SIGKILL.
Expand Down Expand Up @@ -196,6 +195,7 @@ def get_hwp_state(client) -> Dict[str, Any]:
return client.query_hwp_state().session["data"]["state"]


@pytest.mark.integtest
def test_supervisor_grip(hwp_em, supervisor_agent, sup_client) -> None:
state = get_hwp_state(sup_client)
pprint(state)
Expand All @@ -205,6 +205,7 @@ def test_supervisor_grip(hwp_em, supervisor_agent, sup_client) -> None:
assert state["gripper"]["grip_state"] == "warm"


@pytest.mark.integtest
def test_hwp_spinup(supervisor_agent, sup_client) -> None:
assert not get_hwp_state(sup_client)["is_spinning"]
sup_client.pid_to_freq(target_freq=2.0)
Expand Down

0 comments on commit bce28e8

Please sign in to comment.