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')[source]
Bases: evennia.utils.test_resources.BaseEvenniaTest
Test cases of the event handler to add, edit or delete events.
-
setUp()[source]
Create the event handler.
-
tearDown()[source]
Stop the event handler.
-
test_start()[source]
Simply make sure the handler runs with proper initial values.
-
test_add_validation()[source]
Add a callback while needing validation.
-
test_edit()[source]
Test editing a callback.
-
test_edit_validation()[source]
Edit a callback when validation isn’t automatic.
-
test_del()[source]
Try to delete a callback.
-
test_accept()[source]
Accept an callback.
-
test_call()[source]
Test to call amore complex callback.
-
test_handler()[source]
Test the object handler.
-
class
evennia.contrib.base_systems.ingame_python.tests.TestCmdCallback(methodName='runTest')[source]
Bases: evennia.utils.test_resources.BaseEvenniaCommandTest
Test the @callback command.
-
setUp()[source]
Create the callback handler.
-
tearDown()[source]
Stop the callback handler.
-
test_list()[source]
Test listing callbacks with different rights.
-
test_add()[source]
Test to add an callback.
-
test_del()[source]
Add and remove an callback.
-
test_lock()[source]
Test the lock of multiple editing.
-
test_accept()[source]
Accept an callback.
-
class
evennia.contrib.base_systems.ingame_python.tests.TestDefaultCallbacks(methodName='runTest')[source]
Bases: evennia.utils.test_resources.BaseEvenniaCommandTest
Test the default callbacks.
-
setUp()[source]
Create the callback handler.
-
tearDown()[source]
Stop the callback handler.
-
test_exit()[source]
Test the callbacks of an exit.