@@ -32,3 +32,37 @@ def test_extract_mastodon_url(input_string: str, result: str) -> None:
3232)
3333def test_extract_linkedin_url (input_string : str , result : str ) -> None :
3434 assert EuroPythonSpeaker .extract_linkedin_url (input_string ) == result
35+
36+
37+ @pytest .mark .parametrize (
38+ ("input_string" , "result" ),
39+ [
40+ ("username" , "https://bsky.app/profile/username.bsky.social" ),
41+ ("username.dev" , "https://bsky.app/profile/username.dev" ),
42+ ("username.bsky.social" , "https://bsky.app/profile/username.bsky.social" ),
43+ ("bsky.app/profile/username" , "https://bsky.app/profile/username.bsky.social" ),
44+ ("bsky/username" , "https://bsky.app/profile/username.bsky.social" ),
45+ (
46+ "www.bsky.app/profile/username" ,
47+ "https://bsky.app/profile/username.bsky.social" ,
48+ ),
49+ (
50+ "www.bsky.app/profile/username.bsky.social" ,
51+ "https://bsky.app/profile/username.bsky.social" ,
52+ ),
53+ (
54+ "http://bsky.app/profile/username" ,
55+ "https://bsky.app/profile/username.bsky.social" ,
56+ ),
57+ (
58+ "https://bsky.app/profile/username.com" ,
59+ "https://bsky.app/profile/username.com" ,
60+ ),
61+ (
62+ "https://bsky.app/profile/username.bsky.social" ,
63+ "https://bsky.app/profile/username.bsky.social" ,
64+ ),
65+ ],
66+ )
67+ def test_extract_bluesky_url (input_string : str , result : str ) -> None :
68+ assert EuroPythonSpeaker .extract_bluesky_url (input_string ) == result
0 commit comments