forked from mirror/Archipelago
Some checks failed
Analyze modified files / flake8 (push) Failing after 2m28s
Build / build-win (push) Has been cancelled
Build / build-ubuntu2204 (push) Has been cancelled
ctest / Test C++ ubuntu-latest (push) Has been cancelled
ctest / Test C++ windows-latest (push) Has been cancelled
Analyze modified files / mypy (push) Has been cancelled
Build and Publish Docker Images / Push Docker image to Docker Hub (push) Successful in 5m4s
Native Code Static Analysis / scan-build (push) Failing after 5m2s
type check / pyright (push) Successful in 1m7s
unittests / Test Python 3.11.2 ubuntu-latest (push) Failing after 16m23s
unittests / Test Python 3.12 ubuntu-latest (push) Failing after 28m19s
unittests / Test Python 3.13 ubuntu-latest (push) Failing after 14m49s
unittests / Test hosting with 3.13 on ubuntu-latest (push) Successful in 5m0s
unittests / Test Python 3.13 macos-latest (push) Has been cancelled
unittests / Test Python 3.11 windows-latest (push) Has been cancelled
unittests / Test Python 3.13 windows-latest (push) Has been cancelled
30 lines
1.3 KiB
Python
30 lines
1.3 KiB
Python
from BaseClasses import LocationProgressType
|
|
from test.bases import WorldTestBase
|
|
|
|
|
|
class TestMinLocationsMaxItems(WorldTestBase):
|
|
game = "The Legend of Zelda - Oracle of Seasons"
|
|
options = {
|
|
"required_essences": 0,
|
|
"placed_essences": 0,
|
|
"exclude_dungeons_without_essence": True,
|
|
"shuffle_old_men": 0,
|
|
"keysanity_small_keys": True,
|
|
"keysanity_boss_keys": True,
|
|
"keysanity_maps_compasses": True,
|
|
"treehouse_old_man_requirement": 8,
|
|
"deterministic_gasha_locations": 16,
|
|
"enforce_potion_in_shop": True,
|
|
"shuffle_golden_ore_spots": True,
|
|
"cross_items": True
|
|
}
|
|
|
|
def test_more_items_than_locations(self):
|
|
non_excluded_locations = {location for location in self.multiworld.get_locations(1) if
|
|
location.progress_type != LocationProgressType.EXCLUDED and location.item is None}
|
|
# Excluded locations that has been filled by the dungeon prefill are no longer excluded
|
|
|
|
non_excluded_items = {item for item in self.multiworld.itempool if item.advancement or item.useful}
|
|
self.assertGreaterEqual(len(non_excluded_locations), len(non_excluded_items),
|
|
f"Less prog items than non-excluded locations : {len(non_excluded_locations)} VS {len(non_excluded_items)}")
|