implement support for additional unit test result types

- "pattern" matches all resulting URLs against the given regex
- "count" allows to specify the amount of returned URLs
This commit is contained in:
Mike Fährmann
2017-08-25 22:01:14 +02:00
parent 2d0dfe9d56
commit 47bcf53ec1
6 changed files with 20 additions and 10 deletions

View File

@@ -51,7 +51,7 @@ class YanderePopularExtractor(YandereExtractor, booru.BooruPopularExtractor):
r"(by_(?:day|week|month)|recent)(?:\?([^#]*))?"]
test = [
("https://yande.re/post/popular_by_day?day=20&month=8&year=2017", {
"url": "3fb32f7108d43d70681a38366443ec825d324108",
"count": 40,
}),
("https://yande.re/post/popular_recent", None),
]