summaryrefslogtreecommitdiff
path: root/tests/test_transcript.py
diff options
context:
space:
mode:
authorEric Lin <anselor@gmail.com>2018-04-18 00:05:01 -0400
committerEric Lin <anselor@gmail.com>2018-04-18 00:05:01 -0400
commita448192c3747ac95c04d85c0da4abfb90297251a (patch)
tree4d980b26f595927016ba3fddbc8e5ba7dd107da4 /tests/test_transcript.py
parent93cc2461282067a3601d6ac546a99a40a60eef93 (diff)
parent01e434183d3333b1be03c293a82e36b034e0f78b (diff)
downloadcmd2-git-a448192c3747ac95c04d85c0da4abfb90297251a.tar.gz
Merge remote-tracking branch 'origin/master' into autocompleter
Updated AutoCompleter (#349) to match new directory structure from packaging effort.
Diffstat (limited to 'tests/test_transcript.py')
-rw-r--r--tests/test_transcript.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_transcript.py b/tests/test_transcript.py
index a24f2fa5..8ee5f3f6 100644
--- a/tests/test_transcript.py
+++ b/tests/test_transcript.py
@@ -15,10 +15,10 @@ from unittest import mock
import pytest
import cmd2
-from cmd2 import Cmd, Cmd2TestCase, set_posix_shlex, set_strip_quotes
-from conftest import run_cmd, StdOut, normalize
+from cmd2 import set_posix_shlex, set_strip_quotes
+from .conftest import run_cmd, StdOut, normalize
-class CmdLineApp(Cmd):
+class CmdLineApp(cmd2.Cmd):
MUMBLES = ['like', '...', 'um', 'er', 'hmmm', 'ahh']
MUMBLE_FIRST = ['so', 'like', 'well']
@@ -82,7 +82,7 @@ class CmdLineApp(Cmd):
self.poutput(' '.join(output))
-class DemoApp(Cmd):
+class DemoApp(cmd2.Cmd):
hello_parser = argparse.ArgumentParser()
hello_parser.add_argument('-n', '--name', help="your name")
@cmd2.with_argparser_and_unknown_args(hello_parser)
@@ -189,7 +189,7 @@ now: --->
assert out == expected
-class TestMyAppCase(Cmd2TestCase):
+class TestMyAppCase(cmd2.cmd2.Cmd2TestCase):
CmdApp = CmdLineApp
CmdApp.testfiles = ['tests/transcript.txt']
@@ -293,7 +293,7 @@ def test_transcript(request, capsys, filename, feedback_to_output):
def test_parse_transcript_expected(expected, transformed):
app = CmdLineApp()
- class TestMyAppCase(Cmd2TestCase):
+ class TestMyAppCase(cmd2.cmd2.Cmd2TestCase):
cmdapp = app
testcase = TestMyAppCase()