From 47921d02aa876e2cca35d7a939bfc5a6584f8359 Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Mon, 5 Aug 2019 22:48:54 -0400 Subject: Removed ability for aliases and macros to share names with commands --- tests/test_parsing.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'tests/test_parsing.py') diff --git a/tests/test_parsing.py b/tests/test_parsing.py index ac540183..2114bfaa 100755 --- a/tests/test_parsing.py +++ b/tests/test_parsing.py @@ -604,19 +604,11 @@ def test_empty_statement_raises_exception(): ('l', 'shell', 'ls -al') ]) def test_parse_alias_and_shortcut_expansion(parser, line, command, args): - # Test first with expansion statement = parser.parse(line) assert statement.command == command assert statement == args assert statement.args == statement - # Now allow no expansion - tokens = shlex_split(line) - statement = parser.parse(line, expand=False) - assert statement.command == tokens[0] - assert shlex_split(statement) == tokens[1:] - assert statement.args == statement - def test_parse_alias_on_multiline_command(parser): line = 'anothermultiline has > inside an unfinished command' statement = parser.parse(line) -- cgit v1.2.1