Skip to content

Commit

Permalink
Tests: test that no worlds fail to load (#3318)
Browse files Browse the repository at this point in the history
* test that no worlds fail to load

* pep8

* Update test_implemented.py

---------

Co-authored-by: black-sliver <[email protected]>
Co-authored-by: NewSoupVi <[email protected]>
  • Loading branch information
3 people authored May 18, 2024
1 parent 0e89388 commit 1b6fb7b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/general/test_implemented.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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}")

0 comments on commit 1b6fb7b

Please sign in to comment.