Skip to content

Commit

Permalink
quick fix to deepcopy the state getting passed around
Browse files Browse the repository at this point in the history
  • Loading branch information
qwint committed Aug 6, 2024
1 parent 495c645 commit 99cf723
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/general/test_items.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import unittest
from copy import deepcopy

from worlds.AutoWorld import AutoWorldRegister, call_all
from . import setup_solo_multiworld
Expand Down Expand Up @@ -34,7 +35,7 @@ def test_create_item(self):
multiworld.state.collect(item)
self.assertEqual(base_state, multiworld.state.prog_items)

multiworld.state.prog_items = empty_prog_items
multiworld.state.prog_items = deepcopy(empty_prog_items)

def test_item_name_group_has_valid_item(self):
"""Test that all item name groups contain valid items. """
Expand Down

0 comments on commit 99cf723

Please sign in to comment.