fix RequestsDependencyWarning

This commit is contained in:
ricterzheng
2025-01-29 22:46:11 +08:00
parent fa977fee04
commit 571fba2259
4 changed files with 361 additions and 363 deletions

View File

@ -7,7 +7,7 @@ from nhentai.cmdline import load_config
from nhentai.downloader import Downloader
from nhentai.parser import doujinshi_parser
from nhentai.doujinshi import Doujinshi
from nhentai.utils import generate_html, generate_cbz
from nhentai.utils import generate_html
class TestDownload(unittest.TestCase):
@ -28,9 +28,6 @@ class TestDownload(unittest.TestCase):
generate_html('/tmp', info)
self.assertTrue(os.path.exists(f'/tmp/{did}/index.html'))
generate_cbz('/tmp', info)
self.assertTrue(os.path.exists(f'/tmp/{did}.cbz'))
if __name__ == '__main__':
unittest.main()