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)[source]

Bases: evennia.contrib.base_systems.building_menu.building_menu.BuildingMenu

init(exit)[source]

Create the sub-menu to edit the specified object.

Parameters

obj (Object) – the object to edit.

Note

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')[source]

Bases: evennia.utils.test_resources.BaseEvenniaCommandTest

setUp()[source]

Sets up testing environment

test_quit()[source]

Try to quit the building menu.

test_setattr()[source]

Test the simple setattr provided by building menus.

test_add_choice_without_key()[source]

Try to add choices without keys.

test_callbacks()[source]

Test callbacks in menus.

test_multi_level()[source]

Test multi-level choices.

test_submenu()[source]

Test to add sub-menus.