49ac3c0c3a
If a symbols has dependency on the preceding symbol, the menu entry should become the submenu of the preceding one, and displayed with deeper indentation. This is done by restructuring the menu tree in menu_finalize(). It is a bit complicated computation, so let's add a test case. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Ulf Magnusson <ulfalizer@gmail.com>
13 lines
330 B
Python
13 lines
330 B
Python
"""
|
|
Create submenu for symbols that depend on the preceding one.
|
|
|
|
If a symbols has dependency on the preceding symbol, the menu entry
|
|
should become the submenu of the preceding one, and displayed with
|
|
deeper indentation.
|
|
"""
|
|
|
|
|
|
def test(conf):
|
|
assert conf.oldaskconfig() == 0
|
|
assert conf.stdout_contains('expected_stdout')
|