Skip to content

Commit

Permalink
tests wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Ixrec committed Jan 29, 2024
1 parent 0a46cef commit eb58776
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions worlds/outer_wilds/test/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
from test.bases import WorldTestBase, CollectionState


class OuterWildsTestBase(WorldTestBase):
game = "Outer Wilds"
player: int = 1


class TestWorldA(OuterWildsTestBase):
options = {
"goal": 1,
"logsanity": "false"
}

def test_world_a(self):
# logsanity locations don't exist, so trying to access one raises
self.assertRaises(KeyError, lambda: self.multiworld.get_location("Ship Log: Village 1 - Identify", 1))


class TestWorldB(OuterWildsTestBase):
options = {
"goal": 0,
"logsanity": "true"
}

def test_world_b(self):
# now logsanity locations should exist, and this one should be reachable with nothing
self.assertTrue(self.multiworld.state.can_reach("Ship Log: Village 1 - Identify", "Location", 1))

0 comments on commit eb58776

Please sign in to comment.