[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))

View File

@@ -6,4 +6,4 @@
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
__version__ = "1.3.2"
__version__ = "1.3.3-dev"