mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 02:32:33 +01:00
fix extractor docstrings
This commit is contained in:
parent
df7e18399e
commit
b1325d4d2c
@ -137,7 +137,7 @@ class ArtstationUserExtractor(ArtstationExtractor):
|
||||
|
||||
|
||||
class ArtstationAlbumExtractor(ArtstationExtractor):
|
||||
"""Extractor for all projects of an artstation user"""
|
||||
"""Extractor for all projects in an artstation album"""
|
||||
subcategory = "album"
|
||||
directory_fmt = ["{category}", "{userinfo[username]}", "Albums",
|
||||
"{album[id]} - {album[title]}"]
|
||||
|
@ -234,7 +234,7 @@ class TumblrTagExtractor(TumblrExtractor):
|
||||
|
||||
|
||||
class TumblrLikesExtractor(TumblrExtractor):
|
||||
"""Extractor for images from a tumblr-user by tag"""
|
||||
"""Extractor for images from a tumblr-user's liked posts"""
|
||||
subcategory = "likes"
|
||||
directory_fmt = ["{category}", "{name}", "likes"]
|
||||
archive_fmt = "f_{blog[name]}_{id}_{offset}"
|
||||
|
@ -133,6 +133,17 @@ class TestExtractor(unittest.TestCase):
|
||||
msg = "'{}' isn't matched by any pattern".format(url)
|
||||
self.fail(msg)
|
||||
|
||||
def test_docstrings(self):
|
||||
"""ensure docstring uniqueness"""
|
||||
for extr1 in extractor.extractors():
|
||||
for extr2 in extractor.extractors():
|
||||
if extr1 != extr2 and extr1.__doc__ and extr2.__doc__:
|
||||
self.assertNotEqual(
|
||||
extr1.__doc__,
|
||||
extr2.__doc__,
|
||||
"{} <-> {}".format(extr1, extr2),
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
Loading…
Reference in New Issue
Block a user