mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-21 18:22:30 +01:00
include 'test/results' in flake8 checks
This commit is contained in:
parent
e61f016465
commit
217fa7f8a1
@ -1,7 +1,8 @@
|
||||
[flake8]
|
||||
exclude = .git,__pycache__,build,dist,archive,results
|
||||
exclude = .git,__pycache__,build,dist,archive
|
||||
ignore = E203,E226,W504
|
||||
per-file-ignores =
|
||||
setup.py: E501
|
||||
gallery_dl/extractor/500px.py: E501
|
||||
gallery_dl/extractor/mangapark.py: E501
|
||||
test/results/*.py: E122,E241,E402,E501
|
||||
|
@ -5,7 +5,6 @@
|
||||
# published by the Free Software Foundation.
|
||||
|
||||
import os
|
||||
import sys
|
||||
import functools
|
||||
|
||||
__directory__ = os.path.dirname(__file__)
|
||||
|
@ -43,7 +43,6 @@ __tests__ = (
|
||||
"extension": "jpg",
|
||||
"filename" : "Icy-Moonrise---For-Web",
|
||||
"num" : 1,
|
||||
"num" : int,
|
||||
"url" : "https://3.bp.blogspot.com/-zlJddJtJOUo/Tt4WooTPNtI/AAAAAAAABG8/dGT2cGp2E7Y/s0/Icy-Moonrise---For-Web.jpg",
|
||||
},
|
||||
|
||||
|
@ -41,10 +41,8 @@ __tests__ = (
|
||||
"#category": ("nitter", "nitter.1d4.us", "tweet"),
|
||||
"#class" : nitter.NitterTweetExtractor,
|
||||
|
||||
"content": r"""re:Gear up for #PokemonSwordShieldEX with special Mystery Gifts!
|
||||
|
||||
You’ll be able to receive four Galarian form Pokémon with Hidden Abilities, plus some very useful items. It’s our \(Mystery\) Gift to you, Trainers!
|
||||
|
||||
"content": r"""re:Gear up for #PokemonSwordShieldEX with special Mystery Gifts! \n
|
||||
You’ll be able to receive four Galarian form Pokémon with Hidden Abilities, plus some very useful items. It’s our \(Mystery\) Gift to you, Trainers! \n
|
||||
❓🎁➡️ """,
|
||||
},
|
||||
|
||||
|
@ -71,58 +71,58 @@ __tests__ = (
|
||||
"#pattern" : r"https://img2\.pillowfort\.social/posts/c8e834bc09e6_Brandee\.png",
|
||||
"#count" : 1,
|
||||
|
||||
"avatar_frame" : None,
|
||||
"avatar_id" : None,
|
||||
"avatar_url" : "https://img3.pillowfort.social/avatars/000/037/139/original/437.jpg?1545015697",
|
||||
"b2_lg_url" : "https://img2.pillowfort.social/posts/c8e834bc09e6_Brandee.png",
|
||||
"b2_sm_url" : "https://img2.pillowfort.social/posts/c8e834bc09e6_Brandee_small.png",
|
||||
"cached_tag_list": "art, digital art, mermaid, mermaids, underwater, seaweed, illustration, speed paint",
|
||||
"col" : 0,
|
||||
"comm_screening_status": "not_applicable",
|
||||
"commentable" : True,
|
||||
"comments_count": 0,
|
||||
"community_id" : None,
|
||||
"concealed_comment_warning": None,
|
||||
"content" : "<p>Sea Bed</p>",
|
||||
"created_at" : r"re:2020-02-.+",
|
||||
"currentuser_default_avatar_url": None,
|
||||
"currentuser_multi_avi": None,
|
||||
"date" : "dt:2020-02-29 17:09:03",
|
||||
"deleted" : None,
|
||||
"deleted_at" : None,
|
||||
"deleted_by_mod": None,
|
||||
"deleted_for_flag_id": None,
|
||||
"embed_code" : None,
|
||||
"extension" : "png",
|
||||
"filename" : "Brandee",
|
||||
"hash" : "c8e834bc09e6",
|
||||
"id" : 720167,
|
||||
"last_activity" : r"re:2020-02-.+",
|
||||
"last_activity_elapsed": r"re:\d+ months",
|
||||
"last_edited_at": None,
|
||||
"likes_count" : 8,
|
||||
"media_type" : "picture",
|
||||
"nsfw" : False,
|
||||
"num" : 1,
|
||||
"original_post_id": None,
|
||||
"original_post_user_id": None,
|
||||
"pic_row_last" : 1,
|
||||
"picture_content_type": None,
|
||||
"picture_file_name": None,
|
||||
"picture_file_size": None,
|
||||
"picture_updated_at": None,
|
||||
"post_id" : 1124584,
|
||||
"post_type" : "picture",
|
||||
"privacy" : "public",
|
||||
"reblog_copy_info": [],
|
||||
"rebloggable" : True,
|
||||
"reblogged_from_post_id": None,
|
||||
"reblogged_from_user_id": None,
|
||||
"reblogs_count" : int,
|
||||
"row" : 1,
|
||||
"small_image_url": None,
|
||||
"tag_list" : None,
|
||||
"tags" : [
|
||||
"avatar_frame" : None,
|
||||
"avatar_id" : None,
|
||||
"avatar_url" : "https://img3.pillowfort.social/avatars/000/037/139/original/437.jpg?1545015697",
|
||||
"b2_lg_url" : "https://img2.pillowfort.social/posts/c8e834bc09e6_Brandee.png",
|
||||
"b2_sm_url" : "https://img2.pillowfort.social/posts/c8e834bc09e6_Brandee_small.png",
|
||||
"cached_tag_list": "art, digital art, mermaid, mermaids, underwater, seaweed, illustration, speed paint",
|
||||
"col" : 0,
|
||||
"comm_screening_status": "not_applicable",
|
||||
"commentable" : True,
|
||||
"comments_count": 0,
|
||||
"community_id" : None,
|
||||
"concealed_comment_warning": None,
|
||||
"content" : "<p>Sea Bed</p>",
|
||||
"created_at" : r"re:2020-02-.+",
|
||||
"currentuser_default_avatar_url": None,
|
||||
"currentuser_multi_avi": None,
|
||||
"date" : "dt:2020-02-29 17:09:03",
|
||||
"deleted" : None,
|
||||
"deleted_at" : None,
|
||||
"deleted_by_mod": None,
|
||||
"deleted_for_flag_id": None,
|
||||
"embed_code" : None,
|
||||
"extension" : "png",
|
||||
"filename" : "Brandee",
|
||||
"hash" : "c8e834bc09e6",
|
||||
"id" : 720167,
|
||||
"last_activity" : r"re:2020-02-.+",
|
||||
"last_activity_elapsed": r"re:\d+ months",
|
||||
"last_edited_at": None,
|
||||
"likes_count" : 8,
|
||||
"media_type" : "picture",
|
||||
"nsfw" : False,
|
||||
"num" : 1,
|
||||
"original_post_id": None,
|
||||
"original_post_user_id": None,
|
||||
"pic_row_last" : 1,
|
||||
"picture_content_type": None,
|
||||
"picture_file_name": None,
|
||||
"picture_file_size": None,
|
||||
"picture_updated_at": None,
|
||||
"post_id" : 1124584,
|
||||
"post_type" : "picture",
|
||||
"privacy" : "public",
|
||||
"reblog_copy_info": [],
|
||||
"rebloggable" : True,
|
||||
"reblogged_from_post_id": None,
|
||||
"reblogged_from_user_id": None,
|
||||
"reblogs_count" : int,
|
||||
"row" : 1,
|
||||
"small_image_url": None,
|
||||
"tag_list" : None,
|
||||
"tags" : [
|
||||
"art",
|
||||
"digital art",
|
||||
"mermaid",
|
||||
@ -130,16 +130,16 @@ __tests__ = (
|
||||
"underwater",
|
||||
"seaweed",
|
||||
"illustration",
|
||||
"speed paint"
|
||||
],
|
||||
"time_elapsed" : r"re:\d+ months",
|
||||
"timestamp" : str,
|
||||
"title" : "",
|
||||
"updated_at" : r"re:2020-02-.+",
|
||||
"url" : "",
|
||||
"user_concealed": None,
|
||||
"user_id" : 37201,
|
||||
"username" : "Maclanahan",
|
||||
"speed paint",
|
||||
],
|
||||
"time_elapsed" : r"re:\d+ months",
|
||||
"timestamp" : str,
|
||||
"title" : "",
|
||||
"updated_at" : r"re:2020-02-.+",
|
||||
"url" : "",
|
||||
"user_concealed": None,
|
||||
"user_id" : 37201,
|
||||
"username" : "Maclanahan",
|
||||
},
|
||||
|
||||
{
|
||||
|
@ -81,7 +81,7 @@ __tests__ = (
|
||||
"full" : "https://images.unsplash.com/photo-1601823984263-b87b59798b70?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMjA3fDB8MXxhbGx8fHx8fHx8fHwxNzAwODY2NDE4fA&ixlib=rb-4.0.3&q=85",
|
||||
"raw" : "https://images.unsplash.com/photo-1601823984263-b87b59798b70?ixid=M3wxMjA3fDB8MXxhbGx8fHx8fHx8fHwxNzAwODY2NDE4fA&ixlib=rb-4.0.3",
|
||||
"regular" : "https://images.unsplash.com/photo-1601823984263-b87b59798b70?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMjA3fDB8MXxhbGx8fHx8fHx8fHwxNzAwODY2NDE4fA&ixlib=rb-4.0.3&q=80&w=1080",
|
||||
"small" : "https://images.unsplash.com/photo-1601823984263-b87b59798b70?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMjA3fDB8MXxhbGx8fHx8fHx8fHwxNzAwODY2NDE4fA&ixlib=rb-4.0.3&q=80&w=400",
|
||||
"small" : "https://images.unsplash.com/photo-1601823984263-b87b59798b70?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMjA3fDB8MXxhbGx8fHx8fHx8fHwxNzAwODY2NDE4fA&ixlib=rb-4.0.3&q=80&w=400",
|
||||
"small_s3": "https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1601823984263-b87b59798b70",
|
||||
"thumb" : "https://images.unsplash.com/photo-1601823984263-b87b59798b70?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMjA3fDB8MXxhbGx8fHx8fHx8fHwxNzAwODY2NDE4fA&ixlib=rb-4.0.3&q=80&w=200",
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user