Complete refactoring of main nodes. Remain spawn/load/save
This commit is contained in:
parent
e5f63f8431
commit
e1cc36e4d4
3 changed files with 191 additions and 40 deletions
|
|
@ -482,6 +482,10 @@ class TestMenuModule(EvenniaTest):
|
|||
self.assertEqual(olc_menus._add_perm(caller, "foo2"), "Added Permission 'foo2'")
|
||||
self.assertEqual(olc_menus._get_menu_prototype(caller)["permissions"], ["foo", "foo2"])
|
||||
|
||||
# prototype_tags helpers
|
||||
self.assertEqual(olc_menus._add_prototype_tag(caller, "foo"), "Added Tag 'foo'.")
|
||||
self.assertEqual(olc_menus._add_prototype_tag(caller, "foo2"), "Added Tag 'foo2'.")
|
||||
self.assertEqual(olc_menus._get_menu_prototype(caller)["prototype_tags"], ["foo", "foo2"])
|
||||
|
||||
# spawn helpers
|
||||
with mock.patch("evennia.prototypes.menus.protlib.search_prototype",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue