diff options
author | kotfu <kotfu@kotfu.net> | 2018-05-06 16:03:32 -0600 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2018-05-06 16:03:32 -0600 |
commit | ccfdf0f92043b1a28b871335c50caf6399e99982 (patch) | |
tree | a74fd054d7622c52963ffed832cf5b7a4fefd9c5 /tests/test_completion.py | |
parent | 297f820b111a1bd7ff73e40a3b1af8e7c5fbeafc (diff) | |
download | cmd2-git-ccfdf0f92043b1a28b871335c50caf6399e99982.tar.gz |
Extract AddSubmenu() into it’s own module
Diffstat (limited to 'tests/test_completion.py')
-rw-r--r-- | tests/test_completion.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_completion.py b/tests/test_completion.py index bda5bb8a..2d1ee2b7 100644 --- a/tests/test_completion.py +++ b/tests/test_completion.py @@ -12,8 +12,9 @@ import argparse import os import sys -from cmd2 import cmd2 import pytest +from cmd2 import cmd2 +import cmd2.submenu from .conftest import complete_tester, StdOut from examples.subcommands import SubcommandsExample @@ -973,7 +974,7 @@ class SecondLevel(cmd2.Cmd): second_level_cmd = SecondLevel() -@cmd2.AddSubmenu(second_level_cmd, +@cmd2.submenu.AddSubmenu(second_level_cmd, command='second', require_predefined_shares=False) class SubmenuApp(cmd2.Cmd): |