Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
missionfloyd committed Sep 24, 2024
1 parent e0f03fd commit 72473cc
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gallery_dl/extractor/everia.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def items(self):
yield from self._pagination()


class EveriaCatagoryExtractor(EveriaTagExtractor):
class EveriaCategoryExtractor(EveriaTagExtractor):
subcategory = "category"
pattern = r"(?:https?://)?everia\.club/category/([^/]+)/?"
example = "https://everia.club/category/CATEGORY"
Expand Down
37 changes: 37 additions & 0 deletions test/results/everia.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# -*- 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 everia


__tests__ = (
{
"#url" : "https://everia.club/2024/09/23/mikacho-조미카-joapictures-someday/",
"#category" : ("", "everia", "post"),
"#class" : everia.EveriaExtractor,
"#archive" : False,
"#count" : 32,

"title" : "Mikacho 조미카, JOApictures ‘Someday’",
"id" : 231320,
"date" : "2024-09-23T06:00:04",
},
{
"#url" : "https://everia.club/tag/yeon-woo-연우/",
"#category" : ("", "everia", "tag"),
"#class" : everia.EveriaTagExtractor,
},
{
"#url" : "https://everia.club/category/japan/",
"#category" : ("", "everia", "category"),
"#class" : everia.EveriaCategoryExtractor,
},
{
"#url" : "https://everia.club/?s=saika",
"#category" : ("", "everia", "search"),
"#class" : everia.EveriaSearchExtractor,
}
)

0 comments on commit 72473cc

Please sign in to comment.