Skip to content

Commit

Permalink
Some unit-test related fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziktofel committed Jan 7, 2024
1 parent 37adf99 commit 91ff4f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion worlds/sc2/PoolFilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def attempt_removal(item: Item) -> bool:
inventory = [item for item in inventory if not item.name.endswith("(Dark Templar/Avenger/Blood Hunter)")]
if not {ItemNames.HIGH_TEMPLAR, ItemNames.SIGNIFIER, ItemNames.ASCENDANT, ItemNames.DARK_TEMPLAR} & logical_inventory_set:
inventory = [item for item in inventory if not item.name.endswith("(Archon)")]
logical_inventory_set.difference_update((item_name for item_name in logical_inventory_set if item_name.endswith("(Archon)")))
logical_inventory_set.difference_update([item_name for item_name in logical_inventory_set if item_name.endswith("(Archon)")])
if not {ItemNames.HIGH_TEMPLAR, ItemNames.SIGNIFIER, ItemNames.ARCHON_HIGH_ARCHON} & logical_inventory_set:
inventory = [item for item in inventory if not item.name.endswith("(High Templar/Signifier)")]
if ItemNames.SUPPLICANT not in logical_inventory_set:
Expand Down
3 changes: 2 additions & 1 deletion worlds/sc2/test/test_Regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ class TestGridGeneration(Sc2TestBase):
"enable_prophecy_missions": True,
"enable_lotv_prologue_missions": False,
"enable_lotv_missions": False,
"enable_epilogue_missions": False
"enable_epilogue_missions": False,
"enable_nco_missions": False
}

def test_size_matches_exclusions(self):
Expand Down

0 comments on commit 91ff4f1

Please sign in to comment.