Skip to content

Commit

Permalink
reformatting and updating stretch teleport unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
winthos committed Sep 26, 2024
1 parent 778be85 commit 5bf2d3e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ai2thor/tests/test_unity.py
Original file line number Diff line number Diff line change
Expand Up @@ -1418,16 +1418,17 @@ def test_teleport_stretch(controller):
agent = "stretch"

event = controller.reset(agentMode=agent)
assert event.metadata["agent"]["isStanding"] is None, agent + " cannot stand so this should be None/null!"
assert event.metadata["agent"]["isStanding"] is None, (
agent + " cannot stand so this should be None/null!"
)

# Only degrees of freedom on the locobot
for action in ["Teleport", "TeleportFull"]:
event = controller.step(
action=action,
position=dict(x=-1.5, y=0.9, z=-1.5),
rotation=dict(x=0, y=90, z=0),
horizon=30,
standing=True,
standing=None,
)

print(f"Error Message: {event.metadata['errorMessage']}")
Expand Down

0 comments on commit 5bf2d3e

Please sign in to comment.