re-enable download unit tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user