Skip to content

Commit

Permalink
Merge pull request #900 from allenai/erick/skip-build-5xx
Browse files Browse the repository at this point in the history
fixing get_scenes_in_build test with 5xx scenes
  • Loading branch information
Eric Kolve committed Sep 30, 2021
2 parents d623796 + 5383a9d commit 3f6d22c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ai2thor/tests/test_unity.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
import string
import random
import re
import copy
import json
import pytest
Expand Down Expand Up @@ -1047,7 +1048,9 @@ def test_arm_jsonschema_metadata(controller):
def test_get_scenes_in_build(controller):
scenes = set()
for g in glob.glob("unity/Assets/Scenes/*.unity"):
scenes.add(os.path.splitext(os.path.basename(g))[0])
# we currently ignore the 5xx scenes since they are not being worked on
if not re.match(r'^.*\/FloorPlan5[0-9]+_', g):
scenes.add(os.path.splitext(os.path.basename(g))[0])

event = controller.step(dict(action="GetScenesInBuild"), raise_for_failure=True)
return_scenes = set(event.metadata["actionReturn"])
Expand Down

0 comments on commit 3f6d22c

Please sign in to comment.