evennia.contrib.base_systems.ingame_python.tests

Module containing the test cases for the in-game Python system.

class evennia.contrib.base_systems.ingame_python.tests.TestEventHandler(methodName='runTest')[源代码]

基类:evennia.utils.test_resources.BaseEvenniaTest

Test cases of the event handler to add, edit or delete events.

setUp()[源代码]

Create the event handler.

tearDown()[源代码]

Stop the event handler.

test_start()[源代码]

Simply make sure the handler runs with proper initial values.

test_add_validation()[源代码]

Add a callback while needing validation.

test_edit()[源代码]

Test editing a callback.

test_edit_validation()[源代码]

Edit a callback when validation isn’t automatic.

test_del()[源代码]

Try to delete a callback.

test_accept()[源代码]

Accept an callback.

test_call()[源代码]

Test to call amore complex callback.

test_handler()[源代码]

Test the object handler.

class evennia.contrib.base_systems.ingame_python.tests.TestCmdCallback(methodName='runTest')[源代码]

基类:evennia.utils.test_resources.BaseEvenniaCommandTest

Test the @callback command.

setUp()[源代码]

Create the callback handler.

tearDown()[源代码]

Stop the callback handler.

test_list()[源代码]

Test listing callbacks with different rights.

test_add()[源代码]

Test to add an callback.

test_del()[源代码]

Add and remove an callback.

test_lock()[源代码]

Test the lock of multiple editing.

test_accept()[源代码]

Accept an callback.

class evennia.contrib.base_systems.ingame_python.tests.TestDefaultCallbacks(methodName='runTest')[源代码]

基类:evennia.utils.test_resources.BaseEvenniaCommandTest

Test the default callbacks.

setUp()[源代码]

Create the callback handler.

tearDown()[源代码]

Stop the callback handler.

test_exit()[源代码]

Test the callbacks of an exit.