From 0fce565c85a993d19ddd0d4e407614a102c2aa08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Vigan=C3=B2?= Date: Sun, 23 Aug 2020 15:55:42 +0200 Subject: [PATCH] Fix tests --- bite/telemetry/tests.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bite/telemetry/tests.py b/bite/telemetry/tests.py index f568540..9da002f 100644 --- a/bite/telemetry/tests.py +++ b/bite/telemetry/tests.py @@ -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)