summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd2/cmd2.py8
-rw-r--r--cmd2/rl_utils.py2
2 files changed, 5 insertions, 5 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index 704773cc..2adfe743 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -3131,7 +3131,7 @@ Script should contain one command per line, just like command would be typed in
runner = unittest.TextTestRunner()
runner.run(testcase)
- def _clear_input_lines_str(self) -> str:
+ def _clear_input_lines_str(self) -> str: # pragma: no cover
"""
Returns a string that if printed will clear the prompt and input lines in the terminal,
leaving the cursor at the beginning of the first input line
@@ -3175,7 +3175,7 @@ Script should contain one command per line, just like command would be typed in
return terminal_str
- def async_alert(self, alert_msg: str, new_prompt: Optional[str] = None) -> None:
+ def async_alert(self, alert_msg: str, new_prompt: Optional[str] = None) -> None: # pragma: no cover
"""
Used to display an important message to the user while they are at the prompt in between commands.
To the user it appears as if an alert message is printed above the prompt and their current input
@@ -3218,7 +3218,7 @@ Script should contain one command per line, just like command would be typed in
else:
raise RuntimeError("another thread holds terminal_lock")
- def async_update_prompt(self, new_prompt: str) -> None:
+ def async_update_prompt(self, new_prompt: str) -> None: # pragma: no cover
"""
Updates the prompt while the user is still typing at it. This is good for alerting the user to system
changes dynamically in between commands. For instance you could alter the color of the prompt to indicate
@@ -3260,7 +3260,7 @@ Script should contain one command per line, just like command would be typed in
raise RuntimeError("another thread holds terminal_lock")
@staticmethod
- def set_window_title(title: str) -> None:
+ def set_window_title(title: str) -> None: # pragma: no cover
"""
Sets the terminal window title
:param title: the new window title
diff --git a/cmd2/rl_utils.py b/cmd2/rl_utils.py
index 569ba8cf..d4e7666a 100644
--- a/cmd2/rl_utils.py
+++ b/cmd2/rl_utils.py
@@ -182,7 +182,7 @@ def rl_make_safe_prompt(prompt: str, start: str = "\x01", end: str = "\x02") ->
:param end: end code to tell GNU Readline about end of invisible characters
:return: prompt safe to pass to GNU Readline
"""
- if rl_type == RlType.GNU:
+ if rl_type == RlType.GNU: # pragma: no cover
escaped = False
result = ""