From 4d07f391cbf84edaace9aab85c1c22a0080a27e9 Mon Sep 17 00:00:00 2001 From: Dennis Siemensma Date: Mon, 26 Sep 2022 19:32:49 +0200 Subject: [PATCH] Fixed tests #1711 --- dsmr_weather/tests/test_services.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dsmr_weather/tests/test_services.py b/dsmr_weather/tests/test_services.py index 3af541495..3cce99991 100644 --- a/dsmr_weather/tests/test_services.py +++ b/dsmr_weather/tests/test_services.py @@ -50,6 +50,7 @@ def test_okay(self, now_mock, requests_mock): { "stationid": WeatherSettings.get_solo().buienradar_station, "groundtemperature": 123.4, + "temperature": 567.8, } ] } @@ -62,7 +63,7 @@ def test_okay(self, now_mock, requests_mock): self.assertTrue(TemperatureReading.objects.exists()) self.assertEqual( - TemperatureReading.objects.get().degrees_celcius, Decimal("123.4") + TemperatureReading.objects.get().degrees_celcius, Decimal("567.8") ) self.schedule_process.refresh_from_db() @@ -100,7 +101,8 @@ def test_fail_station(self, now_mock, requests_mock): "stationmeasurements": [ { "stationid": 0000, - "groundtemperature": 123, + "temperature": 123, + "groundtemperature": 456, } ] }