diff --git a/tests/unit/browser/test_adblock.py b/tests/unit/browser/test_adblock.py index be801de73..1a9c820a7 100644 --- a/tests/unit/browser/test_adblock.py +++ b/tests/unit/browser/test_adblock.py @@ -92,12 +92,12 @@ class FakeDownloadManager: """Mock browser.downloads.DownloadManager.""" - def get(self, url, fileobj, **kwargs): + def get(self, url, target, **kwargs): """Return a FakeDownloadItem instance with a fileobj. The content is copied from the file the given url links to. """ - download_item = FakeDownloadItem(fileobj, name=url.path()) + download_item = FakeDownloadItem(target.fileobj, name=url.path()) with open(url.path(), 'rb') as fake_url_file: shutil.copyfileobj(fake_url_file, download_item.fileobj) return download_item