feat(pose_3d): POST /unlock proxy + non-regression check
This commit is contained in:
1 parent
feaab2aae7
commit
0ab0e5691c
2 files changed
+32
No files matched your search
@@ -187,3 +187,15 @@ def test_go_pose_executes_via_g1_with_stored_values():
|
||||
assert captured["side"] == "left"
|
||||
assert captured["position"] == [0.11, 0.22, 0.33]
|
||||
assert captured["precise"] is True
|
||||
|
||||
|
||||
def test_unlock_proxies_to_bridge():
|
||||
def _post(url, *args, **kw):
|
||||
assert url.endswith("/unlock")
|
||||
resp = MagicMock()
|
||||
resp.json.return_value = {"ok": True, "message": "unlocked"}
|
||||
return resp
|
||||
with patch("presa_mano.api.pose_3d_routes.httpx.post", side_effect=_post):
|
||||
r = client.post("/api/pose_3d/unlock")
|
||||
assert r.status_code == 200
|
||||
assert r.json()["ok"] is True
|
||||
Reference in new issue
Block a user