@@ -33,6 +33,7 @@ def test_extract_mastodon_url(input_string: str, result: str) -> None:
3333def test_extract_linkedin_url (input_string : str , result : str ) -> None :
3434 assert EuroPythonSpeaker .extract_linkedin_url (input_string ) == result
3535
36+
3637@pytest .mark .parametrize (
3738 ("input_string" , "result" ),
3839 [
@@ -41,12 +42,27 @@ def test_extract_linkedin_url(input_string: str, result: str) -> None:
4142 ("username.bsky.social" , "https://bsky.app/profile/username.bsky.social" ),
4243 ("bsky.app/profile/username" , "https://bsky.app/profile/username.bsky.social" ),
4344 ("bsky/username" , "https://bsky.app/profile/username.bsky.social" ),
44- ("www.bsky.app/profile/username" , "https://bsky.app/profile/username.bsky.social" ),
45- ("www.bsky.app/profile/username.bsky.social" , "https://bsky.app/profile/username.bsky.social" ),
46- ("http://bsky.app/profile/username" , "https://bsky.app/profile/username.bsky.social" ),
47- ("https://bsky.app/profile/username.com" , "https://bsky.app/profile/username.com" ),
48- ("https://bsky.app/profile/username.bsky.social" , "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+ ),
4965 ],
5066)
5167def test_extract_bluesky_url (input_string : str , result : str ) -> None :
52- assert EuroPythonSpeaker .extract_bluesky_url (input_string ) == result
68+ assert EuroPythonSpeaker .extract_bluesky_url (input_string ) == result
0 commit comments