1
0
mirror of https://github.com/daniviga/bite.git synced 2024-11-26 14:56:13 +01:00

Fix tests

This commit is contained in:
Daniele Viganò 2020-08-23 15:55:42 +02:00
parent 5c6736a817
commit 0fce565c85
Signed by: dani
GPG Key ID: DB49AFC03C40EE02

View File

@ -26,12 +26,12 @@ class ApiTestCase(TestCase):
c = Client()
payload = {
'id': 'sensor.server.domain',
'light': 434,
'temperature': {
'celsius': 27.02149,
'raw': 239,
'volts': 0.770215
"id": "sensor.server.domain",
"light": 434,
"temperature": {
"celsius": 27.02149,
"raw": 239,
"volts": 0.770215
}
}
@ -69,4 +69,4 @@ class ApiTestCase(TestCase):
self.assertEqual(
response.json()['transport'], 'http')
self.assertJSONEqual(
json.dumps(response.json()['payload']), self.payload)
response.json()['payload'], self.payload)