Merge pull request #2115 from trhr/test_resources
LocalEvenniaTest - uses settings-defined typeclasses
This commit is contained in:
commit
c6b4e3993d
1 changed files with 12 additions and 0 deletions
|
|
@ -157,3 +157,15 @@ class EvenniaTest(TestCase):
|
|||
self.account.delete()
|
||||
self.account2.delete()
|
||||
super().tearDown()
|
||||
|
||||
class LocalEvenniaTest(EvenniaTest):
|
||||
"""
|
||||
This test class is intended for inheriting in mygame tests.
|
||||
It helps ensure your tests are run with your own objects.
|
||||
"""
|
||||
account_typeclass = settings.BASE_ACCOUNT_TYPECLASS
|
||||
object_typeclass = settings.BASE_OBJECT_TYPECLASS
|
||||
character_typeclass = settings.BASE_CHARACTER_TYPECLASS
|
||||
exit_typeclass = settings.BASE_EXIT_TYPECLASS
|
||||
room_typeclass = settings.BASE_ROOM_TYPECLASS
|
||||
script_typeclass = settings.BASE_SCRIPT_TYPECLASS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue