We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91a861d commit 880bdd1Copy full SHA for 880bdd1
1 file changed
tests/test_completion.py
@@ -627,6 +627,16 @@ def test_parseline_strips_line(cmd2_app):
627
assert args == 'history'
628
assert line.strip() == out_line
629
630
+def test_parseline_expands_alias(cmd2_app):
631
+ # Create the alias
632
+ cmd2_app.do_alias(['fake', 'pyscript'])
633
+
634
+ line = 'fake foobar.py'
635
+ command, args, out_line = cmd2_app.parseline(line)
636
+ assert command == 'pyscript'
637
+ assert args == 'foobar.py'
638
+ assert line.replace('fake', 'pyscript') == out_line
639
640
def test_parseline_expands_shortcuts(cmd2_app):
641
line = '!cat foobar.txt'
642
command, args, out_line = cmd2_app.parseline(line)
0 commit comments