[skeb] rename 'data' -> 'file' & add tests

This commit is contained in:
Mike Fährmann
2024-02-10 19:35:50 +01:00
parent f9a8e8cacf
commit 4cfceb23cb
2 changed files with 42 additions and 36 deletions

View File

@@ -16,6 +16,8 @@ __tests__ = (
"anonymous" : False,
"body" : r"re:はじめまして。私はYouTubeにてVTuberとして活動をしている湊ラ",
"count" : 2,
"num" : range(1, 2),
"client" : {
"avatar_url" : r"re:https://pbs.twimg.com/profile_images/\d+/\w+\.jpg",
"header_url" : r"re:https://pbs.twimg.com/profile_banners/1375007870291300358/\d+/1500x500",
@@ -60,6 +62,9 @@ __tests__ = (
"#class" : skeb.SkebUserExtractor,
"#pattern" : r"https://si\.imgix\.net/\w+/uploads/origins/[\w-]+",
"#range" : "1-5",
"count": int,
"num" : int,
},
{