Esempio n. 1
0
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)
Esempio n. 2
0
def test_check_connection_passes():
    conn = sqlite3.connect(":memory:")
    utils.check_connection(conn)