Skip to content

Commit

Permalink
add toonily tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragonatorul committed Jan 31, 2024
1 parent 63e7f80 commit ecd450e
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions test/results/toonily.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# -*- coding: utf-8 -*-

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.

from gallery_dl.extractor import toonily
from gallery_dl import exception


__tests__ = (
{
"#url" : "https://toonily.com/webtoon/such-a-cute-spy/chapter-36/",
"#category": ("", "toonily", "chapter"),
"#class" : toonily.ToonilyChapterExtractor,
"#pattern" : r"https://toonily\.com/wp-content/uploads/WP-manga/data/manga_[^/]+/[^/]+/[^.]+\.\w+",
"#count" : 11,

"manga" : "Jinxed",
"title" : "",
"chapter" : 36,
"tags" : ["harem"],
"lang" : "en",
"language" : "English",
},

{
"#url" : "https://toonily.com/webtoon/such-a-cute-spy/chapter-1000000/",
"#category": ("", "toonily", "chapter"),
"#class" : toonily.ToonilyChapterExtractor,
"#exception": exception.NotFoundError,
},

{
"#url" : "https://toonily.com/webtoon/such-a-cute-spy",
"#category": ("", "toonily", "manga"),
"#class" : toonily.ToonilyMangaExtractor,
"#pattern" : r"https://toonily\.com/webtoon/such-a-cute-spy/chapter-\d+([_-].+)?/",
"#count" : ">= 13",

"manga" : "Such a Cute Spy",
"author" : ["Life of Ruin"],
"artist" : ["Ganghyeon Yeo"],
"genres" : [
"Action",
"Comedy",
"Romance",
"School Life",
],
"rating" : float,
"status" : "End",
"lang" : "en",
"language" : "English",
"manga_alt" : list,
},

{
"#url" : "https://toonily.com/manga/doesnotexist",
"#category": ("", "toonily", "manga"),
"#class" : toonily.ToonilyMangaExtractor,
"#exception": exception.HttpError,
},

)

0 comments on commit ecd450e

Please sign in to comment.