Skip to content

Commit

Permalink
Apply black and isort to test-webots file (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
lola831 authored Jan 14, 2025
1 parent 8a2a7e9 commit dcd0213
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/simulators/webots/test_webots.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,16 @@ def test_dynamics_scenarios(launchWebots):
cleanup_results()

timeout_seconds = 300

command = f"bash {WEBOTS_ROOT}/webots --no-rendering --minimize --batch {WEBOTS_WORLD_FILE_PATH}"

try:
subprocess.run(command, shell=True, timeout=timeout_seconds)
except subprocess.TimeoutExpired:
pytest.fail(f"Webots test exceeded the timeout of {timeout_seconds} seconds and failed.")

pytest.fail(
f"Webots test exceeded the timeout of {timeout_seconds} seconds and failed."
)

data = receive_results()
assert data != None
start_z = float(data.split(",")[1].strip(" )]"))
Expand Down

0 comments on commit dcd0213

Please sign in to comment.