mirror of
https://github.com/RicterZ/nhentai.git
synced 2025-04-20 02:41:19 +02:00
fix: update threads argument
This commit is contained in:
parent
49e5a3094a
commit
0754caaeb7
@ -20,7 +20,7 @@ class TestDownload(unittest.TestCase):
|
|||||||
def test_download(self):
|
def test_download(self):
|
||||||
did = 440546
|
did = 440546
|
||||||
info = Doujinshi(**doujinshi_parser(did), name_format='%i')
|
info = Doujinshi(**doujinshi_parser(did), name_format='%i')
|
||||||
info.downloader = Downloader(path='/tmp', size=5)
|
info.downloader = Downloader(path='/tmp', threads=5)
|
||||||
info.download()
|
info.download()
|
||||||
|
|
||||||
self.assertTrue(os.path.exists(f'/tmp/{did}/001.jpg'))
|
self.assertTrue(os.path.exists(f'/tmp/{did}/001.jpg'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user