Duck
a36e6259f1
Core: Add restricted_dumps
helper ( #5117 )
...
* Add pickling helper that check unpicklability
* Add test condition and generation error handling
* Fix incorrect call and make imports consistent
* Fix newline padding
* Change PicklingError to directly caused by UnpicklingError
Co-authored-by: Doug Hoskisson <beauxq@users.noreply.github.com >
* Revert to `pickle.dumps` for decompressed multidata
* Fix import order
* Restore pickle import in main
* Re-add for multidata in Main
* Remove multisave checks
* Update MultiServer.py
* Update customserver.py
---------
Co-authored-by: Doug Hoskisson <beauxq@users.noreply.github.com >
Co-authored-by: NewSoupVi <57900059+NewSoupVi@users.noreply.github.com >
2025-07-26 23:01:40 +02:00
NewSoupVi
73146ef30c
Tests: Use Option.from_any instead of Option() in test_pickle_dumps, which is currently preventing Range options from using default: "random" #4197
2024-11-17 01:52:49 +01:00
Aaron Wagener
aaf25f8c6f
Tests: add test that option classes aren't reused ( #3530 )
2024-10-30 23:32:38 +01:00
Fabian Dill
48822227b5
Test: option instances have to be pickleable ( #4006 )
2024-10-16 23:31:36 +02:00
Aaron Wagener
83521e99d9
Core: migrate item links out of main ( #2914 )
...
* Core: move item linking out of main
* add a test that item link option correctly validates
* remove unused fluff
---------
Co-authored-by: NewSoupVi <57900059+NewSoupVi@users.noreply.github.com >
2024-07-31 12:04:21 +02:00
Aaron Wagener
580c9c3943
Core: fix item_name_groups unfolding in item links ( #3088 )
2024-04-18 18:58:18 +02:00
Fabian Dill
79e2f7e357
Tests: test that World.options is not set on the class ( #2725 )
...
Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com >
2024-01-15 20:50:16 +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