mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 09:24:31 +02:00
fix: validate response shape before indexing in test_query_load_exten...
This commit is contained in:
parent
8f0c06e188
commit
193a708664
1 changed files with 3 additions and 1 deletions
|
|
@ -117,7 +117,9 @@ def test_query_load_extension(use_spatialite_shortcut):
|
|||
],
|
||||
)
|
||||
assert result.exit_code == 0, result.stdout
|
||||
assert ["spatialite_version()"] == list(json.loads(result.output)[0].keys())
|
||||
rows = json.loads(result.output)
|
||||
assert len(rows) == 1
|
||||
assert ["spatialite_version()"] == list(rows[0].keys())
|
||||
|
||||
|
||||
def test_cli_create_spatialite(tmpdir):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue