Skip to content

Commit c5a1223

Browse files
committed
fix broken tests for python3x
1 parent 8616c72 commit c5a1223

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

testResponse.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ def setUp(self):
5757

5858
def test_download(self):
5959
for file_type in FILE_TYPE_MIME_TABLE.keys():
60-
print(file_type)
6160
response = self.client.get("/polls/download/"+file_type)
6261
assert response['Content-Type'] == FILE_TYPE_MIME_TABLE[file_type]
6362
sheet = pe.get_sheet(file_type=file_type,
@@ -80,10 +79,10 @@ def test_download_attachment_with_unicode_name_as_string(self):
8079

8180
def _download_and_verify_file_name(self, file_name):
8281
for file_type in FILE_TYPE_MIME_TABLE.keys():
83-
print(file_type)
8482
url_encoded_file_name = urllib_quote(file_name)
8583
response = self.client.get(
86-
"/polls/download_attachment/"+file_type+"/"+file_name)
84+
("/polls/download_attachment/%s/%s" % (
85+
file_type, url_encoded_file_name)))
8786
assert response['Content-Type'] == FILE_TYPE_MIME_TABLE[file_type]
8887
assert response['Content-Disposition'] == (
8988
"attachment; filename=%s.%s;filename*=utf-8''%s.%s"

0 commit comments

Comments
 (0)