summaryrefslogtreecommitdiff
path: root/tests/test_history.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_history.py')
-rwxr-xr-xtests/test_history.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_history.py b/tests/test_history.py
index 11f189f6..6fa16ad8 100755
--- a/tests/test_history.py
+++ b/tests/test_history.py
@@ -3,22 +3,23 @@
"""
Test history functions of cmd2
"""
-import tempfile
import os
+import tempfile
import pytest
+import cmd2
# Python 3.5 had some regressions in the unitest.mock module, so use
# 3rd party mock if available
from cmd2.parsing import StatementParser
+from .conftest import HELP_HISTORY, normalize, run_cmd
+
try:
import mock
except ImportError:
from unittest import mock
-import cmd2
-from .conftest import run_cmd, normalize, HELP_HISTORY
#