Aaron Wagener
3869a25944
Tests: assign the world to WorldTestBase, and a default player field ( #2385 )
...
* Tests: assign the World to WorldTestBase and add a player field (because I like typing self.player far more than random 1's all over the place)
* more accurate docstring for world and multiworld
* use self.player within the class
2024-02-15 23:49:52 +01:00
Doug Hoskisson
ac2387e17c
Tests: remove deprecated option access from `WorldTestBase` ( #2671 )
...
* remove deprecated option access from `WorldTestBase`
* one in test_reachability
2024-01-12 00:22:04 +01:00
el-u
ba53278147
core: make option resolution in world tests deterministic ( #2471 )
...
Co-authored-by: Zach Parks <zach@alliware.com>
2023-11-25 13:53:02 +01:00
el-u
2af5410301
core: fix item/location descriptions test ( #2450 )
2023-11-15 07:26:10 +01:00
Natalie Weizenbaum
2dd904e758
Allow worlds to provide item and location descriptions ( #2409 )
...
These are displayed in the weighted options page as hoverable tooltips.
2023-11-11 01:06:54 -05:00
black-sliver
5f5c48e17b
Core: fix some memory leak sources without removing caching ( #2400 )
...
* Core: fix some memory leak sources
* Core: run gc before detecting memory leaks
* Core: restore caching in BaseClasses.MultiWorld
* SM: move spheres cache to MultiWorld._sm_spheres to avoid memory leak
* Test: add tests for world memory leaks
* Test: limit WorldTestBase leak-check to py>=3.11
---------
Co-authored-by: Fabian Dill <fabian.dill@web.de>
2023-10-31 02:08:56 +01:00
Fabian Dill
3e0d1d4e1c
Core: change Region caching to on_change from on-miss-strategy ( #2366 )
2023-10-29 19:47:37 +01:00
Aaron Wagener
30da81c390
Tests: modern PEP8-ify core test modules and methods ( #2298 )
...
* rename modules
* rename methods
* add docstrings to the general tests
* add base import stub
* test_base -> bases
* print deprecation warning
* redo 2346
2023-10-22 13:00:27 +02:00