Archipelago/test
Doug Hoskisson b5343a36ff
Core: fix settings API for removal of Python 3.8, 3.9 (#4280)
* Core: fix settings API for removal of Python 3.8, 3.9

This is fixing 2 problems:
- The `World` class has the annotation:
  `settings: ClassVar[Optional["Group"]]`
  so `MyWorld.settings` should not raise an exception like it does for some worlds.
  With the `Optional` there, it looks like it should return `None` for the worlds that don't use it. So that's what I changed it to.

- `Group.update` had some code that required `typing.Union` instead of the Python 3.10 `|` for unions.

added unit test for this fix
added change in Zillion that I used to discover this problem and used it to test the test

* fix copy-pasted stuff

* tuple instead of set

Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com>

---------

Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com>
2024-11-29 21:17:56 +01:00
..
benchmark Tests: add world load benchmark (#2768) 2024-02-04 09:09:07 +01:00
cpp Speedups: remove dependency on c++ (#2796) 2024-06-12 18:54:59 +02:00
general Core: fix settings API for removal of Python 3.8, 3.9 (#4280) 2024-11-29 21:17:56 +01:00
hosting Generate: split ERmain out of main (#3515) 2024-06-16 03:27:06 +02:00
multiworld Tests: Fix indentation in TestTwoPlayerMulti (#4010) 2024-10-01 21:30:45 +02:00
netutils Fix !remaining for cross-world items (#3732) 2024-08-16 22:20:02 +02:00
options Core: Fix Template Yamls for games with colon in name (#4106) 2024-11-14 23:43:42 +01:00
programs Tests: Add a test that weights file generates different results per player correctly (#3392) 2024-10-30 23:18:30 +01:00
utils Utils: YAML goes brrrt (#2868) 2024-02-27 08:44:34 +01:00
webhost Tests: have option preset validation test do full validation (#4208) 2024-11-18 18:09:27 +01:00
worlds Core: fix unittest world discovery (#2262) 2023-10-03 09:47:22 +02:00
TestBase.py Tests: modern PEP8-ify core test modules and methods (#2298) 2023-10-22 13:00:27 +02:00
__init__.py Tests: Add ignore filter to s2clientprotocol warnings (#4180) 2024-11-13 19:04:31 +01:00
bases.py Core, some worlds: Rename sweep_for_events to sweep_for_advancements (#3571) 2024-08-23 01:15:05 +02:00