summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-07-16 10:48:17 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-07-16 10:48:17 -0400
commit90cfcdfc795d0c4eb6768eae9623a049e9e79e8d (patch)
tree0112e281f5c6c62afe041b53b13b4dfa0824e8c0 /tests
parent1820ebe60a4d059b6f016041fe9b401758ae321e (diff)
downloadcmd2-git-90cfcdfc795d0c4eb6768eae9623a049e9e79e8d.tar.gz
Moved the sorting of shortcuts into StatementParser which allows users to pass in a dictionary instead of a tuple for shortcuts.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_history.py2
-rw-r--r--tests/test_parsing.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_history.py b/tests/test_history.py
index add93ea6..88f38172 100644
--- a/tests/test_history.py
+++ b/tests/test_history.py
@@ -276,7 +276,7 @@ def parser():
'l': '!ls -al',
'anothermultiline': 'multiline',
'fake': 'run_pyscript'},
- shortcuts=[('?', 'help'), ('!', 'shell')]
+ shortcuts={'?': 'help', '!': 'shell'}
)
return parser
diff --git a/tests/test_parsing.py b/tests/test_parsing.py
index 13a535c0..a629d9fa 100644
--- a/tests/test_parsing.py
+++ b/tests/test_parsing.py
@@ -21,7 +21,7 @@ def parser():
'l': '!ls -al',
'anothermultiline': 'multiline',
'fake': 'run_pyscript'},
- shortcuts=[('?', 'help'), ('!', 'shell')]
+ shortcuts={'?': 'help', '!': 'shell'}
)
return parser