find_spatialite() utility function, closes #135

This commit is contained in:
Simon Willison 2020-08-21 13:30:02 -07:00
commit bf4c6b7c82
3 changed files with 38 additions and 0 deletions

View file

@ -20,3 +20,8 @@ def test_decode_base64_values(input, expected, should_be_is):
assert actual is input
else:
assert actual == expected
def test_find_spatialite():
spatialite = utils.find_spatialite()
assert spatialite is None or isinstance(spatialite, str)