Skip to content

transcripts do not fail on missing commands #1207

Closed
@crotwell

Description

@crotwell

A non-existant command in a transcript should fail, but it passes even though cmd2 knows that "notacmd is not a recognized command, alias, or macro".

Create a transcript manually:

echo "(Cmd) notacmd" > test_notacmd.txt

Then using first_app example:

python first_app.py --test test_notacmd.txt

output is:

python first_app.py --test test_notacmd.txt
============================= cmd2 transcript test =============================
platform darwin -- Python 3.9.10, cmd2-2.3.3, readline-RlType.GNU
cwd: xxxxx/python-cmd2/cmd2/examples
cmd2 app: first_app.py
collected 1 transcript
notacmd is not a recognized command, alias, or macro
.
----------------------------------------------------------------------
Ran 1 test in 0.003s

OK
===================== 1 transcript passed in 0.003 seconds =====================

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions