We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40fa455 commit ec175f8Copy full SHA for ec175f8
tests/test_cmd2.py
@@ -1831,6 +1831,20 @@ def test_complete_unalias(base_app):
1831
result = base_app.complete_unalias(text, line, begidx, endidx)
1832
assert sorted(expected) == sorted(result)
1833
1834
+def test_multiple_aliases(base_app):
1835
+ alias1 = 'h1'
1836
+ alias2 = 'h2'
1837
+ run_cmd(base_app, 'alias {} help'.format(alias1))
1838
+ run_cmd(base_app, 'alias {} help -v'.format(alias2))
1839
+ out = run_cmd(base_app, alias1)
1840
+ expected = normalize(BASE_HELP)
1841
+ assert out == expected
1842
+
1843
+ out = run_cmd(base_app, alias2)
1844
+ expected = normalize(BASE_HELP_VERBOSE)
1845
1846
1847
1848
def test_ppaged(base_app):
1849
msg = 'testing...'
1850
end = '\n'
0 commit comments