re-enable download unit tests

This commit is contained in:
Mike Fährmann
2017-10-25 12:55:36 +02:00
parent 963670d73b
commit 27c026543f
2 changed files with 8 additions and 4 deletions

View File

@@ -264,7 +264,7 @@ class TestJob(DownloadJob):
def __exit__(self, *args):
pass
def open(self):
def open(self, mode):
self.size = 0
return self
@@ -276,6 +276,9 @@ class TestJob(DownloadJob):
def tell(self):
return self.size
def part_size(self):
return 0
def __init__(self, url, parent=None, content=False):
DownloadJob.__init__(self, url, parent)
self.content = content