@@ -42,27 +42,15 @@ def test_get_thumbnail_url(self):
4242 backend = VimeoBackend ("https://vimeo.com/72304002" )
4343 expected_url = "https://i.vimeocdn.com/video/446150690-9621b882540b53788eaa36ef8e303d4e06fc40af3d27918b7f561bb44ed971dc-d_640"
4444 actual_url = backend .get_thumbnail_url ()
45-
4645 # Parse URLs and compare without query parameters
4746 expected_parts = urllib .parse .urlparse (expected_url )
4847 actual_parts = urllib .parse .urlparse (actual_url )
49-
5048 # Compare scheme, netloc, and path only
5149 self .assertEqual (
5250 (expected_parts .scheme , expected_parts .netloc , expected_parts .path ),
5351 (actual_parts .scheme , actual_parts .netloc , actual_parts .path ),
5452 )
5553
56- def test_get_thumbnail_url_with_query_params (self ):
57- backend = VimeoBackend ("https://vimeo.com/72304002" )
58- actual_url = backend .get_thumbnail_url ()
59- # Verify that the URL contains query parameters
60- parsed_url = urllib .parse .urlparse (actual_url )
61- self .assertTrue (parsed_url .query , "URL should contain query parameters" )
62- # Verify that the query parameters are valid
63- query_params = urllib .parse .parse_qs (parsed_url .query )
64- self .assertIn ("region" , query_params , "URL should contain 'region' parameter" )
65-
6654 @patch ("embed_video.backends.EMBED_VIDEO_TIMEOUT" , 0.000001 )
6755 def test_timeout_in_get_info (self ):
6856 backend = VimeoBackend ("https://vimeo.com/72304002" )
0 commit comments