summaryrefslogtreecommitdiff
path: root/tests/test_transcript.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2019-06-23 21:11:01 -0400
committerGitHub <noreply@github.com>2019-06-23 21:11:01 -0400
commitbef07746e33da9def33d814913891384a545a95c (patch)
tree86b162f79663f70cbe88e64deb4cecb93106ba68 /tests/test_transcript.py
parentc12ba0ff11b3a8fd083c641cb9149aff6494bbf9 (diff)
parenteb1936e568a2ca4817ab0cd640220a5bc355e226 (diff)
downloadcmd2-git-bef07746e33da9def33d814913891384a545a95c.tar.gz
Merge pull request #703 from python-cmd2/public_api
Minimize public API of cmd2.Cmd class
Diffstat (limited to 'tests/test_transcript.py')
-rw-r--r--tests/test_transcript.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_transcript.py b/tests/test_transcript.py
index 909a6a5c..1d930c26 100644
--- a/tests/test_transcript.py
+++ b/tests/test_transcript.py
@@ -14,7 +14,7 @@ from unittest import mock
import pytest
import cmd2
-from .conftest import run_cmd, BASE_HELP_VERBOSE
+from .conftest import run_cmd, verify_help_text
from cmd2 import transcript
from cmd2.utils import StdSim
@@ -211,9 +211,8 @@ def test_run_script_record_transcript(base_app, request):
with open(transcript_fname) as f:
xscript = f.read()
- expected = '(Cmd) help -v\n' + BASE_HELP_VERBOSE + '\n'
-
- assert xscript == expected
+ assert xscript.startswith('(Cmd) help -v\n')
+ verify_help_text(base_app, xscript)
def test_generate_transcript_stop(capsys):