Skip to content

Commit

Permalink
Fixed tests #1711
Browse files Browse the repository at this point in the history
  • Loading branch information
dennissiemensma committed Sep 26, 2022
1 parent b8e5c4e commit 4d07f39
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dsmr_weather/tests/test_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def test_okay(self, now_mock, requests_mock):
{
"stationid": WeatherSettings.get_solo().buienradar_station,
"groundtemperature": 123.4,
"temperature": 567.8,
}
]
}
Expand All @@ -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()
Expand Down Expand Up @@ -100,7 +101,8 @@ def test_fail_station(self, now_mock, requests_mock):
"stationmeasurements": [
{
"stationid": 0000,
"groundtemperature": 123,
"temperature": 123,
"groundtemperature": 456,
}
]
}
Expand Down

0 comments on commit 4d07f39

Please sign in to comment.