Skip to content

Commit

Permalink
test_table: decode request content
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmoore committed Nov 5, 2019
1 parent 7bb7a32 commit cc9f221
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/tools/OmeroWeb/test/integration/test_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def test_table_html(self, omero_table_file, django_client, table_data):
# GET html
request_url = reverse("omero_table", args=[file_id])
rsp = get(django_client, request_url)
html = rsp.content
html = rsp.content.decode("utf-8")
for col_type, col in zip(col_types, col_names):
assert ('<th title="%s">%s</th>' % (col_type, col)) in html
well_col_index = col_types.index('WellColumn')
Expand All @@ -132,7 +132,7 @@ def test_table_html(self, omero_table_file, django_client, table_data):
# GET csv
request_url = reverse("omero_table", args=[file_id, 'csv'])
rsp = get(django_client, request_url)
csv_data = rsp.content
csv_data = rsp.content.decode("utf-8")
cols_csv = ','.join(col_names)
rows_csv = '\n'.join([','.join(
[str(td) for td in row]) for row in rows])
Expand Down

0 comments on commit cc9f221

Please sign in to comment.