def test_adder_unreal_temp(): adder = Adder('2000-06-13', '22:00:00') conn = sqlite3.connect('src/weather.db') with pytest.raises(ValueError): adder.add_real_weather(conn, '+1000000000000000')
def test_adder_incorrect_input_temp_2(): adder = Adder('2000-06-13', '22:00:00') conn = sqlite3.connect('src/weather.db') with pytest.raises(ValueError): adder.add_real_weather(conn, '+2q')