summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2018-04-16 23:03:49 -0600
committerkotfu <kotfu@kotfu.net>2018-04-16 23:03:49 -0600
commit4a3d01b679c5db7f6cb670ca981a953eb3b98dc5 (patch)
tree455eb1da1b0a3f8794fb4fccd092b541b1949a0a /tests
parent33f2f03610f6c71ed232fe3b608f8592dec88428 (diff)
downloadcmd2-git-4a3d01b679c5db7f6cb670ca981a953eb3b98dc5.tar.gz
Basic structure for cmd2 as a package
Still have a fair amount of work to do to get this sorted.
Diffstat (limited to 'tests')
-rw-r--r--tests/__init__.py5
-rw-r--r--tests/test_argparse.py2
-rw-r--r--tests/test_cmd2.py4
-rw-r--r--tests/test_submenu.py2
-rw-r--r--tests/test_transcript.py2
5 files changed, 10 insertions, 5 deletions
diff --git a/tests/__init__.py b/tests/__init__.py
new file mode 100644
index 00000000..6d3e5a82
--- /dev/null
+++ b/tests/__init__.py
@@ -0,0 +1,5 @@
+#
+# -*- coding: utf-8 -*-
+#
+from .conftest import run_cmd, StdOut, normalize, BASE_HELP, BASE_HELP_VERBOSE, \
+ HELP_HISTORY, SHORTCUTS_TXT, SHOW_TXT, SHOW_LONG
diff --git a/tests/test_argparse.py b/tests/test_argparse.py
index 7096848a..569dc57b 100644
--- a/tests/test_argparse.py
+++ b/tests/test_argparse.py
@@ -8,7 +8,7 @@ import pytest
import cmd2
from unittest import mock
-from conftest import run_cmd, StdOut
+#from conftest import run_cmd, StdOut
# Prefer statically linked gnureadline if available (for macOS compatibility due to issues with libedit)
try:
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index e4316757..bf6d5242 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -22,8 +22,8 @@ except ImportError:
from unittest import mock
import cmd2
-from conftest import run_cmd, normalize, BASE_HELP, BASE_HELP_VERBOSE, \
- HELP_HISTORY, SHORTCUTS_TXT, SHOW_TXT, SHOW_LONG, StdOut
+#from conftest import run_cmd, normalize, BASE_HELP, BASE_HELP_VERBOSE, \
+# HELP_HISTORY, SHORTCUTS_TXT, SHOW_TXT, SHOW_LONG, StdOut
def test_ver():
diff --git a/tests/test_submenu.py b/tests/test_submenu.py
index 3064da56..f91991ea 100644
--- a/tests/test_submenu.py
+++ b/tests/test_submenu.py
@@ -5,7 +5,7 @@ Cmd2 testing for argument parsing
import pytest
import cmd2
-from conftest import run_cmd, StdOut, normalize
+#from conftest import run_cmd, StdOut, normalize
class SecondLevelB(cmd2.Cmd):
diff --git a/tests/test_transcript.py b/tests/test_transcript.py
index a24f2fa5..f3d98b0a 100644
--- a/tests/test_transcript.py
+++ b/tests/test_transcript.py
@@ -16,7 +16,7 @@ import pytest
import cmd2
from cmd2 import Cmd, Cmd2TestCase, set_posix_shlex, set_strip_quotes
-from conftest import run_cmd, StdOut, normalize
+#from conftest import run_cmd, StdOut, normalize
class CmdLineApp(Cmd):