aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-03-16 07:09:10 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-03-16 07:09:10 +0100
commit6563837ee1e62ed33aa223f4bf6f11addaab140a (patch)
treea6e1f96a3057d8c548a4f23e87ad25451a9d5a04
parentfd5e6f7ef204db1eb3e9ad879543ae9951abdae7 (diff)
downloadyoutube-dl-6563837ee1e62ed33aa223f4bf6f11addaab140a.tar.xz
[udemy] Make sure test case is not inherited
-rw-r--r--youtube_dl/extractor/udemy.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/udemy.py b/youtube_dl/extractor/udemy.py
index 35df918b8..054f42725 100644
--- a/youtube_dl/extractor/udemy.py
+++ b/youtube_dl/extractor/udemy.py
@@ -16,7 +16,7 @@ class UdemyIE(InfoExtractor):
_LOGIN_URL = 'https://www.udemy.com/join/login-submit/'
_NETRC_MACHINE = 'udemy'
- _TEST = {
+ _TESTS = [{
'url': 'https://www.udemy.com/java-tutorial/#/lecture/172757',
'md5': '98eda5b657e752cf945d8445e261b5c5',
'info_dict': {
@@ -27,7 +27,7 @@ class UdemyIE(InfoExtractor):
'duration': 579.29,
},
'skip': 'Requires udemy account credentials',
- }
+ }]
def _handle_error(self, response):
if not isinstance(response, dict):
@@ -129,6 +129,7 @@ class UdemyCourseIE(UdemyIE):
_VALID_URL = r'https?://www\.udemy\.com/(?P<coursepath>[\da-z-]+)'
_SUCCESSFULLY_ENROLLED = '>You have enrolled in this course!<'
_ALREADY_ENROLLED = '>You are already taking this course.<'
+ _TESTS = []
@classmethod
def suitable(cls, url):