Skip to content

Commit ecbe90f

Browse files
committed
fix broken tests
1 parent e18e2aa commit ecbe90f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testResponse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def test_parse_single_sheet(self):
7272
with open(tmp_filename, "rb") as fp:
7373
response = self.client.post('/polls/parse/'+data_struct_type,
7474
data={"file": fp})
75-
assert json.loads(response.content) == test_sample[data_struct_type]
75+
assert json.loads(response.content.decode('utf-8')) == test_sample[data_struct_type]
7676
os.unlink(tmp_filename)
7777

7878
def test_parse_book(self):
@@ -91,7 +91,7 @@ def test_parse_book(self):
9191
with open(tmp_filename, "rb") as fp:
9292
response = self.client.post('/polls/parse/'+data_struct_type,
9393
data={"file": fp})
94-
assert json.loads(response.content) == expected_dict
94+
assert json.loads(response.content.decode('utf-8')) == expected_dict
9595
os.unlink(tmp_filename)
9696

9797
def test_exchange(self):

0 commit comments

Comments
 (0)