forked from tangger/lerobot
Mock robots (WIP segmentation fault)
This commit is contained in:
@@ -197,6 +197,13 @@ def require_robot(func):
|
||||
mock_cameras(request)
|
||||
mock_motors(request)
|
||||
|
||||
def mock_input(text):
|
||||
print(text)
|
||||
|
||||
monkeypatch = request.getfixturevalue("monkeypatch")
|
||||
# To run calibration without user input
|
||||
monkeypatch.setattr("builtins.input", mock_input)
|
||||
|
||||
# Run test with a real robot. Skip test if robot connection fails.
|
||||
else:
|
||||
# `is_robot_available` is defined in `tests/conftest.py`
|
||||
|
||||
Reference in New Issue
Block a user