def clean_db(request): request.cls.con = con = connect() con.execute("MATCH (_) DETACH DELETE _") assert list(con.execute("MATCH (_) RETURN count(_)")) == [(0, )] con.commit() yield con.close()
def test_connection_failure(self): with raises(OperationalError): _ = connect("bolt://no.such.server:666")
def test_connection_failure(self): with raises(OperationalError): _ = connect("bolt://localhost:666")