Пример #1
0
def test_weather_source_base(consumption_history_one_summer_electricity):
    weather_source = WeatherSourceBase()
    consumptions = consumption_history_one_summer_electricity.get("electricity")
    with pytest.raises(NotImplementedError):
        avg_temps = weather_source.average_temperature(consumptions,"degF")
    with pytest.raises(NotImplementedError):
        hdds = weather_source.hdd(consumptions,"degF",base=65)
Пример #2
0
def test_weather_source_base(periods):
    weather_source = WeatherSourceBase()
    with pytest.raises(NotImplementedError):
        avg_temps = weather_source.average_temperature(periods, "degF")
    with pytest.raises(NotImplementedError):
        hdds = weather_source.hdd(periods, "degF", base=65)