Commit 70853dbc authored by Michal Čihař's avatar Michal Čihař

Fix charts tests with Python 3

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 9db20788
...@@ -38,7 +38,7 @@ class ChartsTest(ViewTestCase): ...@@ -38,7 +38,7 @@ class ChartsTest(ViewTestCase):
Tests whether response has valid json chart data. Tests whether response has valid json chart data.
""" """
self.assertEqual(response.get('Content-Type'), 'application/json') self.assertEqual(response.get('Content-Type'), 'application/json')
data = json.loads(response.content) data = json.loads(response.content.decode('utf-8'))
self.assertTrue('series' in data) self.assertTrue('series' in data)
self.assertTrue('labels' in data) self.assertTrue('labels' in data)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment