def test_check_connection_spatialite_raises():
    path = str((pathlib.Path(__file__).parent / 'spatialite.db'))
    conn = sqlite3.connect(path)
    with pytest.raises(utils.SpatialiteConnectionProblem):
        utils.check_connection(conn)
def test_check_connection_spatialite_raises():
    path = str((pathlib.Path(__file__).parent / 'spatialite.db'))
    conn = sqlite3.connect(path)
    with pytest.raises(utils.SpatialiteConnectionProblem):
        utils.check_connection(conn)