From db41cc3743eb45f0c53a387265f8cf496bbacd29 Mon Sep 17 00:00:00 2001 From: kotfu Date: Sun, 6 May 2018 13:58:05 -0600 Subject: Defer import of unittest --- tests/test_transcript.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/test_transcript.py') diff --git a/tests/test_transcript.py b/tests/test_transcript.py index 70658161..99d4735e 100644 --- a/tests/test_transcript.py +++ b/tests/test_transcript.py @@ -17,6 +17,7 @@ import pytest from cmd2 import cmd2 from .conftest import run_cmd, StdOut +from cmd2 import transcript class CmdLineApp(cmd2.Cmd): @@ -177,7 +178,7 @@ this is a \/multiline\/ command def test_parse_transcript_expected(expected, transformed): app = CmdLineApp() - class TestMyAppCase(cmd2.Cmd2TestCase): + class TestMyAppCase(transcript.Cmd2TestCase): cmdapp = app testcase = TestMyAppCase() -- cgit v1.2.1 From 6780baa83457f7e99ba3a9c4f6a3c27701326ac5 Mon Sep 17 00:00:00 2001 From: kotfu Date: Wed, 23 May 2018 21:16:17 -0600 Subject: Standardize cmd2 imports in tests and examples --- tests/test_transcript.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_transcript.py') diff --git a/tests/test_transcript.py b/tests/test_transcript.py index 99d4735e..302d80c8 100644 --- a/tests/test_transcript.py +++ b/tests/test_transcript.py @@ -15,7 +15,7 @@ import tempfile from unittest import mock import pytest -from cmd2 import cmd2 +import cmd2 from .conftest import run_cmd, StdOut from cmd2 import transcript -- cgit v1.2.1