Skip to content

Commit 0b1e214

Browse files
committed
Fix flast wiring test
1 parent 98f036e commit 0b1e214

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/unit/wiring/test_wiringflask_py36.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
import unittest
2+
import json
23

34
# Runtime import to avoid syntax errors in samples on Python < 3.5 and reach top-dir
45
import os
56
_TOP_DIR = os.path.abspath(
67
os.path.sep.join((
78
os.path.dirname(__file__),
8-
'../',
9+
"../",
910
)),
1011
)
1112
_SAMPLES_DIR = os.path.abspath(
1213
os.path.sep.join((
1314
os.path.dirname(__file__),
14-
'../samples/',
15+
"../samples/",
1516
)),
1617
)
1718
import sys
@@ -27,7 +28,7 @@ def test(self):
2728
client = web.app.test_client()
2829

2930
with web.app.app_context():
30-
response = client.get('/')
31+
response = client.get("/")
3132

3233
self.assertEqual(response.status_code, 200)
33-
self.assertEqual(response.data, b'{"result":"Ok"}\n')
34+
self.assertEqual(json.loads(response.data), {"result": "Ok"})

0 commit comments

Comments
 (0)