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

@ -16,7 +16,7 @@ import json
from mock import Mock, MagicMock
from evennia.server.portal import irc
from evennia.utils.test_resources import EvenniaTest
from evennia.utils.test_resources import BaseEvenniaTest
from twisted.conch.telnet import IAC, WILL, DONT, SB, SE, NAWS, DO
from twisted.test import proto_helpers
@ -281,7 +281,7 @@ class TestTelnet(TwistedTestCase):
return d
class TestWebSocket(EvenniaTest):
class TestWebSocket(BaseEvenniaTest):
def setUp(self):
super().setUp()
self.proto = WebSocketClient()

View file

@ -8,7 +8,7 @@ import unittest
from django.test import TestCase
from evennia.server.validators import EvenniaPasswordValidator
from evennia.utils.test_resources import EvenniaTest
from evennia.utils.test_resources import BaseEvenniaTest
from django.test.runner import DiscoverRunner
@ -70,7 +70,7 @@ class TestDeprecations(TestCase):
)
class ValidatorTest(EvenniaTest):
class ValidatorTest(BaseEvenniaTest):
def test_validator(self):
# Validator returns None on success and ValidationError on failure.
validator = EvenniaPasswordValidator()
@ -84,7 +84,7 @@ class ValidatorTest(EvenniaTest):
self.assertRaises(ValidationError, validator.validate, "(#)[#]<>", user=self.account)
class ThrottleTest(EvenniaTest):
class ThrottleTest(BaseEvenniaTest):
"""
Class for testing the connection/IP throttle.
"""