[test] add unit tests for extractor module functions

This commit is contained in:
Mike Fährmann
2018-03-24 17:24:34 +01:00
parent a993d0ea90
commit dd314279fb
5 changed files with 143 additions and 3 deletions

View File

@@ -107,7 +107,7 @@ def find(url):
def add(klass):
"""Add 'klass' to the list of available extractors"""
for pattern in klass:
for pattern in klass.pattern:
_cache.append((re.compile(pattern), klass))