Esempio n. 1
0
def add_bot_neo4j(bot_id=1):
    neo4j.add_bot({
        'id': bot_id,
        'name': 'bot_test',
        'username': '******'
    })
    return neo4j.check_bot_exists(bot_id)
Esempio n. 2
0
def add_bot_neo4j(list_id):
    for id in list_id:
        neo4j.add_bot({'id': id, 'name': 'bot_test', 'username': '******'})
        neo4j.save_all()
        if not neo4j.check_bot_exists(id):
            return False
    return True
Esempio n. 3
0
def delete_neo4j_data():
    for id in ["1", "2", "3"]:
        neo4j.delete_bot(id)
        neo4j.delete_tweet(id)
        if neo4j.check_bot_exists(id):
            return False
        if neo4j.check_tweet_exists(id):
            return False
    return True
Esempio n. 4
0
def delete_neo4j_data():
    for bot_id in [1, 2]:
        neo4j.delete_bot(bot_id)
        if neo4j.check_bot_exists(bot_id):
            return False
    return True
Esempio n. 5
0
def delete_neo4j_data():
	neo4j.delete_bot("1")
	return not neo4j.check_bot_exists("1")
Esempio n. 6
0
def add_bot_neo4j():
	neo4j.add_bot({'id': "1", 'name': 'bot_test', 'username': '******'})
	neo4j.save_all()
	return neo4j.check_bot_exists("1")