From 96bc06db03908a9b816c8138ca67fddf31ca9199 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 24 Aug 2021 16:16:32 -0700 Subject: [PATCH] Show output on error --- tests/test_insert_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_insert_files.py b/tests/test_insert_files.py index 49591a0..3c188bc 100644 --- a/tests/test_insert_files.py +++ b/tests/test_insert_files.py @@ -142,7 +142,7 @@ def test_insert_files_bad_text_encoding_error(): ["insert-files", db_path, "files", str(latin), "--text"], catch_exceptions=False, ) - assert result.exit_code == 1 + assert result.exit_code == 1, result.output assert result.output.strip().startswith( "Error: Could not read file '{}' as text".format(str(latin.resolve())) )