evennia.web.api.tests

Tests for the REST API.

class evennia.web.api.tests.TestEvenniaRESTApi(methodName='runTest')[source]

Bases: evennia.utils.test_resources.BaseEvenniaTest

client_class

alias of rest_framework.test.APIClient

maxDiff = None
setUp()[source]

Sets up testing environment

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

get_view_details(action)[source]

Helper function for generating list of named tuples

test_retrieve()[source]
test_update()[source]
test_delete()[source]
test_list()[source]
test_create()[source]
test_set_attribute()[source]