diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-01-31 23:24:47 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-01-31 23:24:47 -0500 |
commit | 9cb49fb2a3b980f97d5fb27ea37c6dfeee3b9ec4 (patch) | |
tree | 6d03d9b69ca6472211deb512ab80469f7b7d4802 /tests/test_cmd2.py | |
parent | 43be550b235f88007c4c1792a7caff38c5ba271f (diff) | |
download | cmd2-git-9cb49fb2a3b980f97d5fb27ea37c6dfeee3b9ec4.tar.gz |
Add in isort changes
Diffstat (limited to 'tests/test_cmd2.py')
-rwxr-xr-x | tests/test_cmd2.py | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index ca88cf99..759ec7d4 100755 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -9,7 +9,9 @@ import io import os import sys import tempfile -from code import InteractiveConsole +from code import ( + InteractiveConsole, +) import pytest @@ -40,7 +42,9 @@ from .conftest import ( try: import mock except ImportError: - from unittest import mock + from unittest import ( + mock, + ) def CreateOutsimApp(): @@ -1018,14 +1022,18 @@ def test_default_to_shell(base_app, monkeypatch): def test_ansi_prompt_not_esacped(base_app): - from cmd2.rl_utils import rl_make_safe_prompt + from cmd2.rl_utils import ( + rl_make_safe_prompt, + ) prompt = '(Cmd) ' assert rl_make_safe_prompt(prompt) == prompt def test_ansi_prompt_escaped(): - from cmd2.rl_utils import rl_make_safe_prompt + from cmd2.rl_utils import ( + rl_make_safe_prompt, + ) app = cmd2.Cmd() color = 'cyan' @@ -2072,7 +2080,9 @@ def test_multiple_macros(base_app): def test_nonexistent_macro(base_app): - from cmd2.parsing import StatementParser + from cmd2.parsing import ( + StatementParser, + ) exception = None |