fix: validate response shape before indexing in test_query_load_exten...

This commit is contained in:
BigNounce90 2026-05-21 12:53:03 +07:00
commit 193a708664

View file

@ -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):