summaryrefslogtreecommitdiff
path: root/cmd2/argcomplete_bridge.py
diff options
context:
space:
mode:
authorEric Lin <anselor@gmail.com>2018-05-04 14:03:54 -0400
committerEric Lin <anselor@gmail.com>2018-05-04 14:03:54 -0400
commit6efe7217a58ff1bfe54bea79a7aa35f08a114b5f (patch)
tree7b37f69a15f184ba208087f0f1786b9ff7ef698c /cmd2/argcomplete_bridge.py
parent94156f8a78b74588275141d27c0b633455fa4fc0 (diff)
downloadcmd2-git-6efe7217a58ff1bfe54bea79a7aa35f08a114b5f.tar.gz
Adds some semblance of testing for bash completion. Tests the completion logic in the argcomplete function but doesn't test actual completion in bash.
Diffstat (limited to 'cmd2/argcomplete_bridge.py')
-rw-r--r--cmd2/argcomplete_bridge.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/argcomplete_bridge.py b/cmd2/argcomplete_bridge.py
index 3d53132e..2e3ddac4 100644
--- a/cmd2/argcomplete_bridge.py
+++ b/cmd2/argcomplete_bridge.py
@@ -4,7 +4,7 @@
try:
# check if argcomplete is installed
import argcomplete
-except ImportError:
+except ImportError: # pragma: no cover
# not installed, skip the rest of the file
pass
@@ -70,7 +70,7 @@ else:
break
except ValueError:
# ValueError can be caused by missing closing quote
- if not quotes_to_try:
+ if not quotes_to_try: # pragma: no cover
# Since we have no more quotes to try, something else
# is causing the parsing error. Return None since
# this means the line is malformed.