pixiv: include stacc url in new artist entries (#4028).

This commit is contained in:
evazion
2018-12-27 15:03:11 -06:00
parent 1f73e60514
commit 2129e60b2b
3 changed files with 29 additions and 3 deletions

View File

@@ -278,6 +278,17 @@ module Sources
assert_equal(["fate/grand_order"], source.translated_tags.map(&:name))
end
end
context "fetching the artist data" do
should "get the artist names and profile urls" do
source = get_source("https://www.pixiv.net/member_illust.php?mode=medium&illust_id=65981746")
assert_equal("uroobnad", source.tag_name)
assert_equal(["uroobnad"], source.other_names)
assert_includes(source.profile_urls, "https://www.pixiv.net/member.php?id=696859")
assert_includes(source.profile_urls, "https://www.pixiv.net/stacc/uroobnad")
end
end
end
end
end