about summary refs log tree commit diff
path: root/youtube_dl/extractor/gfycat.py
diff options
context:
space:
mode:
authorFireDart <firedartonline@gmail.com>2015-04-16 18:10:53 -0400
committerFireDart <firedartonline@gmail.com>2015-04-16 18:10:53 -0400
commit4aec95f3c932ee7042ca4dcae9fcd8c57341bb55 (patch)
treeaea20f8cbfa2bf57ed932a538eecf66f1ce6cdda /youtube_dl/extractor/gfycat.py
parentafe4a8c7699e70ecaa7f273b55a038b4d8a1050f (diff)
downloadyoutube-dl-4aec95f3c932ee7042ca4dcae9fcd8c57341bb55.tar.gz
youtube-dl-4aec95f3c932ee7042ca4dcae9fcd8c57341bb55.tar.xz
youtube-dl-4aec95f3c932ee7042ca4dcae9fcd8c57341bb55.zip
[gfycat] Updated tests.
Diffstat (limited to 'youtube_dl/extractor/gfycat.py')
-rw-r--r--youtube_dl/extractor/gfycat.py58
1 files changed, 33 insertions, 25 deletions
diff --git a/youtube_dl/extractor/gfycat.py b/youtube_dl/extractor/gfycat.py
index d103693cd..6de78c49d 100644
--- a/youtube_dl/extractor/gfycat.py
+++ b/youtube_dl/extractor/gfycat.py
@@ -8,31 +8,39 @@ from .common import InfoExtractor
 
 class GfycatIE(InfoExtractor):
     _VALID_URL = r'https?://(?:www\.)?gfycat\.com/(?P<id>[^/?#]+)'
-    _TESTS = [{
-        'url': 'http://gfycat.com/DeadlyDecisiveGermanpinscher',
-        'info_dict': {
-            'id':          'DeadlyDecisiveGermanpinscher',
-            'title':       'Ghost in the Shell',
-            'ext':         'mp4',
-            'upload_date': '20140913'
-        }
-    },{
-        'url': 'http://gfycat.com/pleasinghilariouskusimanse',
-        'info_dict': {
-            'id':          'pleasinghilariouskusimanse',
-            'title':       'PleasingHilariousKusimanse',
-            'ext':         'webm',
-            'upload_date': '20150412'
-        }
-    },{
-        'url': 'http://gfycat.com/requiredunkemptbuzzard',
-        'info_dict': {
-            'id':          'requiredunkemptbuzzard',
-            'title':       'Headshot!',
-            'ext':         'gif',
-            'upload_date': '20150130'
-        }
-    }]
+    _TESTS = [
+        {
+            'url': 'http://gfycat.com/DeadlyDecisiveGermanpinscher',
+            'info_dict': {
+                'id':          'DeadlyDecisiveGermanpinscher',
+                'title':       'Ghost in the Shell',
+                'ext':         'mp4',
+                'upload_date': '20140913'
+            }
+        },{
+            'url': 'http://gfycat.com/pleasinghilariouskusimanse',
+            'info_dict': {
+                'id':          'pleasinghilariouskusimanse',
+                'title':       'PleasingHilariousKusimanse',
+                'ext':         'webm',
+                'upload_date': '20150412'
+            },
+            'params': {
+                'format': 'webm',
+            },
+        },{
+            'url': 'http://gfycat.com/requiredunkemptbuzzard',
+            'info_dict': {
+                'id':          'requiredunkemptbuzzard',
+                'title':       'Headshot!',
+                'ext':         'gif',
+                'upload_date': '20150129'
+            },
+            'params': {
+                'format': 'gif',
+            },
+        },
+    ]
 
     def _real_extract(self, url):
         video_id = self._match_id(url)