evennia.contrib.base_systems.building_menu.tests

Building menu tests.

class evennia.contrib.base_systems.building_menu.tests.Submenu(caller=None, obj=None, title='Building menu: {obj}', keys=None, parents=None, persistent=False)[源代码]

基类:evennia.contrib.base_systems.building_menu.building_menu.BuildingMenu

init(exit)[源代码]

Create the sub-menu to edit the specified object.

参数

obj (Object) – the object to edit.

注解

This method is probably to be overridden in your subclasses. Use add_choice and its variants to create menu choices.

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

基类:evennia.utils.test_resources.BaseEvenniaCommandTest

setUp()[源代码]

Sets up testing environment

test_quit()[源代码]

Try to quit the building menu.

test_setattr()[源代码]

Test the simple setattr provided by building menus.

test_add_choice_without_key()[源代码]

Try to add choices without keys.

test_callbacks()[源代码]

Test callbacks in menus.

test_multi_level()[源代码]

Test multi-level choices.

test_submenu()[源代码]

Test to add sub-menus.