mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-24 18:04:32 +02:00
Turn SQL errors into click errors
This commit is contained in:
parent
78aebb6479
commit
287cdcae89
2 changed files with 5 additions and 2 deletions
|
|
@ -1049,7 +1049,7 @@ def test_query_load_extension(use_spatialite_shortcut):
|
|||
# Without --load-extension:
|
||||
result = CliRunner().invoke(cli.cli, [":memory:", "select spatialite_version()"])
|
||||
assert result.exit_code == 1
|
||||
assert "no such function: spatialite_version" in repr(result)
|
||||
assert "no such function: spatialite_version" in result.output
|
||||
# With --load-extension:
|
||||
if use_spatialite_shortcut:
|
||||
load_extension = "spatialite"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue