From 1b6fb7b090c28a9f9d92e0c034b9f6b07fb41ff3 Mon Sep 17 00:00:00 2001 From: Silvris <58583688+Silvris@users.noreply.github.com> Date: Sat, 18 May 2024 17:42:58 -0500 Subject: [PATCH] Tests: test that no worlds fail to load (#3318) * test that no worlds fail to load * pep8 * Update test_implemented.py --------- Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com> Co-authored-by: NewSoupVi <57900059+NewSoupVi@users.noreply.github.com> --- test/general/test_implemented.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/general/test_implemented.py b/test/general/test_implemented.py index 624be710185d..e76d539451ea 100644 --- a/test/general/test_implemented.py +++ b/test/general/test_implemented.py @@ -3,6 +3,7 @@ from Fill import distribute_items_restrictive from NetUtils import encode from worlds.AutoWorld import AutoWorldRegister, call_all +from worlds import failed_world_loads from . import setup_solo_multiworld @@ -47,3 +48,7 @@ def test_slot_data(self): for key, data in multiworld.worlds[1].fill_slot_data().items(): self.assertIsInstance(key, str, "keys in slot data must be a string") self.assertIsInstance(encode(data), str, f"object {type(data).__name__} not serializable.") + + def test_no_failed_world_loads(self): + if failed_world_loads: + self.fail(f"The following worlds failed to load: {failed_world_loads}")