summaryrefslogtreecommitdiff
path: root/tests/test_argparse.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2021-01-31 23:24:47 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2021-01-31 23:24:47 -0500
commit9cb49fb2a3b980f97d5fb27ea37c6dfeee3b9ec4 (patch)
tree6d03d9b69ca6472211deb512ab80469f7b7d4802 /tests/test_argparse.py
parent43be550b235f88007c4c1792a7caff38c5ba271f (diff)
downloadcmd2-git-9cb49fb2a3b980f97d5fb27ea37c6dfeee3b9ec4.tar.gz
Add in isort changes
Diffstat (limited to 'tests/test_argparse.py')
-rw-r--r--tests/test_argparse.py21
1 files changed, 16 insertions, 5 deletions
diff --git a/tests/test_argparse.py b/tests/test_argparse.py
index 72f28abb..131182fd 100644
--- a/tests/test_argparse.py
+++ b/tests/test_argparse.py
@@ -4,13 +4,17 @@
Cmd2 testing for argument parsing
"""
import argparse
-from typing import Optional
+from typing import (
+ Optional,
+)
import pytest
import cmd2
-from .conftest import run_cmd
+from .conftest import (
+ run_cmd,
+)
# Prefer statically linked gnureadline if available (for macOS compatibility due to issues with libedit)
try:
@@ -425,8 +429,13 @@ def test_subcmd_decorator(subcommand_app):
def test_unittest_mock():
- from unittest import mock
- from cmd2 import CommandSetRegistrationError
+ from unittest import (
+ mock,
+ )
+
+ from cmd2 import (
+ CommandSetRegistrationError,
+ )
with mock.patch.object(ArgparseApp, 'namespace_provider'):
with pytest.raises(CommandSetRegistrationError):
@@ -443,7 +452,9 @@ def test_unittest_mock():
def test_pytest_mock_invalid(mocker):
- from cmd2 import CommandSetRegistrationError
+ from cmd2 import (
+ CommandSetRegistrationError,
+ )
mocker.patch.object(ArgparseApp, 'namespace_provider')
with pytest.raises(CommandSetRegistrationError):