mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-28 11:54:32 +02:00
Show more detailed error on invalid JSON, closes #532
This commit is contained in:
parent
a256d7de98
commit
e4ed372517
2 changed files with 7 additions and 5 deletions
|
|
@ -43,9 +43,9 @@ def test_insert_invalid_json_error(tmpdir):
|
|||
input="name,age\nCleo,4",
|
||||
)
|
||||
assert result.exit_code == 1
|
||||
assert (
|
||||
result.output
|
||||
== "Error: Invalid JSON - use --csv for CSV or --tsv for TSV files\n"
|
||||
assert result.output == (
|
||||
"Error: Invalid JSON - use --csv for CSV or --tsv for TSV files\n\n"
|
||||
"JSON error: Expecting value: line 1 column 1 (char 0)\n"
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue