Exemplo n.º 1
0
def init_database_with_one_report():
    client = create_non_empty_db(INFLUX_URI, INFLUX_PORT, INFLUX_DBNAME, 1,
                                 SENSOR_NAME, TARGET_NAME)
    yield client
    delete_db(client, INFLUX_DBNAME)
Exemplo n.º 2
0
def init_empty_database():
    client = create_empty_db(INFLUX_URI, INFLUX_PORT)
    yield client
    delete_db(client, INFLUX_DBNAME)