From f4a71899e0fc83277c5a91688fe7d48973c0b39f Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Sun, 26 May 2024 10:35:30 +0200 Subject: [PATCH] Additional tests --- test/test_parsing.py | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/test/test_parsing.py b/test/test_parsing.py index 15abd92..d63b939 100644 --- a/test/test_parsing.py +++ b/test/test_parsing.py @@ -19,6 +19,36 @@ PARSABLE_SOCIAL_IDS_COMBINED = [ SocialSiteId.TUMBLR, 'triviallytrue', ), + + # Cohost formats + ( + 'https://cohost.org/andrewelmore?page=0', + SocialSiteId.COHOST_PROFILE, + 'andrewelmore', + ), + ( + 'https://cohost.org/andrewelmore', + SocialSiteId.COHOST_PROFILE, + 'andrewelmore', + ), + + # Reddit formats + ('https://old.reddit.com/user/Harpsibored/submitted/', + SocialSiteId.REDDIT_USER , + 'Harpsibored', + ), + ('https://old.reddit.com/user/Harpsibored/submitted', + SocialSiteId.REDDIT_USER , + 'Harpsibored', + ), + ('https://old.reddit.com/user/Harpsibored/', + SocialSiteId.REDDIT_USER , + 'Harpsibored', + ), + ('https://old.reddit.com/user/Harpsibored', + SocialSiteId.REDDIT_USER , + 'Harpsibored', + ), ] PARSABLE_SOCIAL_IDS = [ @@ -37,7 +67,6 @@ PARSABLE_SOCIAL_IDS = [ PARSABLE_SOCIAL_SITE_IDS = [ ('https://www.deviantart.com/solquiet', SocialSiteId.DEVIANT_ART_ACCOUNT), ('https://solquiet.deviantart.com/', SocialSiteId.DEVIANT_ART_ACCOUNT), - ('https://cohost.org/example', SocialSiteId.COHOST_PROFILE), ('https://instagram.com/_richardparry_', SocialSiteId.INSTAGRAM_PAGE), ('https://instagram.com/j_kmor/', SocialSiteId.INSTAGRAM_PAGE), ('https://instagram.com/cullensartbox/', SocialSiteId.INSTAGRAM_PAGE),