Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pomegranited committed Jul 4, 2017
1 parent bb88ed1 commit 84d18e9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion openassessment/fileupload/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,6 @@ def test_upload_download(self, key):
# Download file
download_url = self.backend.get_download_url(self.key)
self.assertIsNotNone(download_url)
print download_url
response = self.client.get(download_url)
self.assertEqual(200, response.status_code)
self.assertEqual(self.content_type, response.get('Content-Type'))
Expand Down
2 changes: 0 additions & 2 deletions openassessment/fileupload/views_django_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,5 @@ def django_storage(request, key):
"""
Upload files using django storage backend.
"""
if isinstance(key, unicode):
key = key.encode("utf-8")
Backend().upload_file(key, request.body)
return HttpResponse()

0 comments on commit 84d18e9

Please sign in to comment.