Clean up all test suites

This commit is contained in:
Griatch 2022-01-07 16:12:12 +01:00
parent 0f3b96886c
commit 19f920b6d4
41 changed files with 237 additions and 169 deletions

View file

@ -4,11 +4,11 @@ Test Color markup.
"""
import re
from evennia.utils.test_resources import EvenniaTest
from evennia.utils.test_resources import BaseEvenniaTest
from . import color_markups
class TestColorMarkup(EvenniaTest):
class TestColorMarkup(BaseEvenniaTest):
"""
Note: Normally this would be tested by importing the ansi parser and run
the mappings through it. This is not possible since the ansi module creates

View file

@ -5,7 +5,7 @@ Testing custom game time
# Testing custom_gametime
from mock import Mock, patch
from evennia.utils.test_resources import EvenniaTest
from evennia.utils.test_resources import BaseEvenniaTest
from .. import custom_gametime
@ -14,7 +14,7 @@ def _testcallback():
@patch("evennia.utils.gametime.gametime", new=Mock(return_value=2975000898.46))
class TestCustomGameTime(EvenniaTest):
class TestCustomGameTime(BaseEvenniaTest):
def tearDown(self):
if hasattr(self, "timescript"):
self.timescript.stop()

View file

@ -11,7 +11,7 @@ from evennia.commands.default.tests import EvenniaCommandTest
from evennia.objects.objects import ExitCommand
from evennia.utils import ansi, utils
from evennia.utils.create import create_object, create_script
from evennia.utils.test_resources import EvenniaTest
from evennia.utils.test_resources import BaseEvenniaTest
from .commands import CmdCallback
from .callbackhandler import CallbackHandler
@ -22,7 +22,7 @@ settings.EVENTS_CALENDAR = "standard"
OLD_EVENTS = {}
class TestEventHandler(EvenniaTest):
class TestEventHandler(BaseEvenniaTest):
"""
Test cases of the event handler to add, edit or delete events.