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()
|
||||
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user