Changed PROTOTYPE_MODULES override in test to use the appropriate decorator and type instead

This commit is contained in:
ChrisLR 2022-01-18 16:11:30 -05:00
parent f9b3b3b60a
commit 5c7b2ddd00

View file

@ -152,13 +152,13 @@ class EvenniaTestMixin:
if hasattr(self, "account2"):
self.account2.delete()
# Set up fake prototype module for allowing tests to use named prototypes.
@override_settings(PROTOTYPE_MODULES=["evennia.utils.tests.data.prototypes_example"])
def create_rooms(self):
self.room1 = create.create_object(self.room_typeclass, key="Room", nohome=True)
self.room1.db.desc = "room_desc"
settings.DEFAULT_HOME = "#%i" % self.room1.id # we must have a default home
# Set up fake prototype module for allowing tests to use named prototypes.
settings.PROTOTYPE_MODULES = "evennia.utils.tests.data.prototypes_example"
self.room2 = create.create_object(self.room_typeclass, key="Room2")
self.exit = create.create_object(
self.exit_typeclass, key="out", location=self.room1, destination=self.room2