mirror of
https://github.com/daniviga/bite.git
synced 2024-11-22 21:16:12 +01:00
Fix tests
This commit is contained in:
parent
5c6736a817
commit
0fce565c85
|
@ -26,12 +26,12 @@ class ApiTestCase(TestCase):
|
||||||
c = Client()
|
c = Client()
|
||||||
|
|
||||||
payload = {
|
payload = {
|
||||||
'id': 'sensor.server.domain',
|
"id": "sensor.server.domain",
|
||||||
'light': 434,
|
"light": 434,
|
||||||
'temperature': {
|
"temperature": {
|
||||||
'celsius': 27.02149,
|
"celsius": 27.02149,
|
||||||
'raw': 239,
|
"raw": 239,
|
||||||
'volts': 0.770215
|
"volts": 0.770215
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,4 +69,4 @@ class ApiTestCase(TestCase):
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
response.json()['transport'], 'http')
|
response.json()['transport'], 'http')
|
||||||
self.assertJSONEqual(
|
self.assertJSONEqual(
|
||||||
json.dumps(response.json()['payload']), self.payload)
|
response.json()['payload'], self.payload)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user