Clean up all test suites
This commit is contained in:
parent
0f3b96886c
commit
19f920b6d4
41 changed files with 237 additions and 169 deletions
|
|
@ -2,7 +2,7 @@
|
|||
Tests for the REST API.
|
||||
|
||||
"""
|
||||
from evennia.utils.test_resources import EvenniaTest
|
||||
from evennia.utils.test_resources import BaseEvenniaTest
|
||||
from evennia.web.api import serializers
|
||||
from rest_framework.test import APIClient
|
||||
from django.urls import reverse
|
||||
|
|
@ -18,7 +18,7 @@ urlpatterns = [
|
|||
|
||||
|
||||
@override_settings(REST_API_ENABLED=True, ROOT_URLCONF=__name__, AUTH_USERNAME_VALIDATORS=[])
|
||||
class TestEvenniaRESTApi(EvenniaTest):
|
||||
class TestEvenniaRESTApi(BaseEvenniaTest):
|
||||
client_class = APIClient
|
||||
maxDiff = None
|
||||
|
||||
|
|
|
|||
|
|
@ -4,13 +4,13 @@ from django.test import Client, override_settings
|
|||
from django.urls import reverse
|
||||
from evennia.utils import class_from_module
|
||||
from evennia.utils.create import create_help_entry
|
||||
from evennia.utils.test_resources import EvenniaTest
|
||||
from evennia.utils.test_resources import BaseEvenniaTest
|
||||
from evennia.help import filehelp
|
||||
|
||||
_FILE_HELP_ENTRIES = None
|
||||
|
||||
|
||||
class EvenniaWebTest(EvenniaTest):
|
||||
class EvenniaWebTest(BaseEvenniaTest):
|
||||
|
||||
# Use the same classes the views are expecting
|
||||
account_typeclass = settings.BASE_ACCOUNT_TYPECLASS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue