summaryrefslogtreecommitdiff
path: root/tests/test_transcript.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_transcript.py')
-rw-r--r--tests/test_transcript.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_transcript.py b/tests/test_transcript.py
index 7e89180a..6b229862 100644
--- a/tests/test_transcript.py
+++ b/tests/test_transcript.py
@@ -302,3 +302,10 @@ def test_multiline_command_transcript_with_comments_at_beginning(request, capsys
else:
assert err == ''
assert out == ''
+
+
+def test_invalid_syntax(_cmdline_app, capsys):
+ run_cmd(_cmdline_app, 'speak "')
+ out, err = capsys.readouterr()
+ expected = normalize("""ERROR: Invalid syntax: No closing quotation""")
+ assert normalize(str(err)) == expected