예제 #1
0
def test_adder_owp():
    now = datetime.datetime.now()
    date_time = str(now).split(' ')

    current_date = date_time[0]

    add = Adder(current_date, '22:00:00')
    conn = sqlite3.connect('src/weather.db')
    add.add_owp_forecasts(conn)
예제 #2
0
def test_adder_owp_stress():
    now = datetime.datetime.now()
    date_time = str(now).split(' ')

    current_date = date_time[0]

    for i in range(0, 200):
        add = Adder(current_date, '22:00:00')
        conn = sqlite3.connect('src/weather.db')
        add.add_owp_forecasts(conn)
        conn.close()