mirror of
https://gitlab.com/dstftw/youtube-dl.git
synced 2020-11-16 09:42:26 +00:00
[infoq] move tests
This commit is contained in:
parent
0d843f796b
commit
9d069c4778
|
@ -176,18 +176,6 @@
|
||||||
"uploader": "Young Americans for Liberty"
|
"uploader": "Young Americans for Liberty"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "InfoQ",
|
|
||||||
"url": "http://www.infoq.com/presentations/A-Few-of-My-Favorite-Python-Things",
|
|
||||||
"file": "12-jan-pythonthings.mp4",
|
|
||||||
"info_dict": {
|
|
||||||
"description": "Mike Pirnat presents some tips and tricks, standard libraries and third party packages that make programming in Python a richer experience.",
|
|
||||||
"title": "A Few of My Favorite [Python] Things"
|
|
||||||
},
|
|
||||||
"params": {
|
|
||||||
"skip_download": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "ComedyCentral",
|
"name": "ComedyCentral",
|
||||||
"url": "http://www.thedailyshow.com/watch/thu-december-13-2012/kristen-stewart",
|
"url": "http://www.thedailyshow.com/watch/thu-december-13-2012/kristen-stewart",
|
||||||
|
|
|
@ -11,6 +11,18 @@ from ..utils import (
|
||||||
|
|
||||||
class InfoQIE(InfoExtractor):
|
class InfoQIE(InfoExtractor):
|
||||||
_VALID_URL = r'^(?:https?://)?(?:www\.)?infoq\.com/[^/]+/[^/]+$'
|
_VALID_URL = r'^(?:https?://)?(?:www\.)?infoq\.com/[^/]+/[^/]+$'
|
||||||
|
_TEST = {
|
||||||
|
u"name": u"InfoQ",
|
||||||
|
u"url": u"http://www.infoq.com/presentations/A-Few-of-My-Favorite-Python-Things",
|
||||||
|
u"file": u"12-jan-pythonthings.mp4",
|
||||||
|
u"info_dict": {
|
||||||
|
u"description": u"Mike Pirnat presents some tips and tricks, standard libraries and third party packages that make programming in Python a richer experience.",
|
||||||
|
u"title": u"A Few of My Favorite [Python] Things"
|
||||||
|
},
|
||||||
|
u"params": {
|
||||||
|
u"skip_download": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
mobj = re.match(self._VALID_URL, url)
|
mobj = re.match(self._VALID_URL, url)
|
||||||
|
|
Loading…
Reference in a new issue