Skip to content

Commit

Permalink
Tweak order of attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
thisjustin123 committed Dec 9, 2024
1 parent 16015b7 commit 9077bc2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_save_scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,16 @@ def test_save_and_load():

env.SaveScene("test_scene.json")

# Give some time to save...
for _ in range(10):
env.step()

assert env.GetAttr(1).data["name"] == "Collider_Box"
assert env.GetAttr(2).data["name"] == "Collider_Box"
assert env.GetAttr(3).data["name"] == "Collider_Box"
assert env.GetAttr(4).data["name"] == "Collider_Box"
assert env.GetAttr(5).data["name"] == "Rigidbody_Sphere"

# Give some time to save...
for _ in range(10):
env.step()

assert os.path.exists("pyrcareworld/pyrcareworld/demo/executable/Player/Player_Data/StreamingAssets/SceneData/test_scene.json")

env.ClearScene()
Expand Down

0 comments on commit 9077bc2

Please sign in to comment.