This commit is contained in:
Oliver Walters 2019-06-17 22:45:48 +10:00
parent eb1d534ebd
commit a147a704bf
2 changed files with 0 additions and 2 deletions

View File

@ -6,7 +6,6 @@ import io
import json import json
import os.path import os.path
from PIL import Image from PIL import Image
import requests
from wsgiref.util import FileWrapper from wsgiref.util import FileWrapper
from django.http import StreamingHttpResponse from django.http import StreamingHttpResponse

View File

@ -97,7 +97,6 @@ class TestMakeBarcoede(TestCase):
class TestDownloadFile(TestCase): class TestDownloadFile(TestCase):
def test_download(self): def test_download(self):
helpers.DownloadFile("hello world", "out.txt") helpers.DownloadFile("hello world", "out.txt")
helpers.DownloadFile(bytes("hello world".encode("utf8")), "out.bin") helpers.DownloadFile(bytes("hello world".encode("utf8")), "out.bin")