Skip to content

Commit

Permalink
test changes aren't needed here
Browse files Browse the repository at this point in the history
  • Loading branch information
alwaysintreble committed Nov 18, 2024
1 parent 6b66e90 commit 4ee88ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 1 addition & 3 deletions test/general/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from argparse import Namespace
from typing import List, Optional, Tuple, Type, Union

from tornado.gen import multi

from BaseClasses import CollectionState, Item, ItemClassification, Location, MultiWorld, Region
from worlds import network_data_package
from worlds.AutoWorld import World, call_all
Expand Down Expand Up @@ -75,7 +73,7 @@ def generate_test_multiworld(players: int = 1) -> MultiWorld:
:return: The generated test multiworld
"""
multiworld = setup_multiworld([TestWorld] * players, seed=0)
multiworld.regions += [Region("Menu", player_id, multiworld) for player_id in multiworld.player_ids]
multiworld.regions += [Region("Menu", player_id + 1, multiworld) for player_id in range(players)]

return multiworld

Expand Down
6 changes: 4 additions & 2 deletions test/general/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
from typing import Callable, Dict, Optional

from BaseClasses import CollectionState, MultiWorld, Region
from test.general import TestWorld, setup_solo_multiworld


class TestHelpers(unittest.TestCase):
multiworld: MultiWorld
player: int = 1

def setUp(self) -> None:
self.multiworld = setup_solo_multiworld(TestWorld, ())
self.multiworld = MultiWorld(self.player)
self.multiworld.game[self.player] = "helper_test_game"
self.multiworld.player_name = {1: "Tester"}
self.multiworld.set_seed()

def test_region_helpers(self) -> None:
"""Tests `Region.add_locations()` and `Region.add_exits()` have correct behavior"""
Expand Down

0 comments on commit 4ee88ac

Please sign in to comment.