mirror of
https://github.com/evennia/evennia.git
synced 2026-03-27 10:16:32 +01:00
Changed PROTOTYPE_MODULES override in test to use the appropriate decorator and type instead
This commit is contained in:
parent
f9b3b3b60a
commit
5c7b2ddd00
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue