fix tests on envs with lazy_extractors builded

merge-requests/5/head
Laura Liberda 2021-01-19 18:39:45 +01:00
parent 6807c8869a
commit 7fd9596a0f
2 changed files with 10 additions and 6 deletions

View File

@ -14,7 +14,10 @@ import copy
from test.helper import FakeHDL, assertRegexpMatches
from haruhi_dl import HaruhiDL
from haruhi_dl.compat import compat_str, compat_urllib_error
from haruhi_dl.extractor import YoutubeIE
# extractors must be imported directly from their files,
# __init__.py points to lazy_extractors, which have no additional attributes/methods
from haruhi_dl.extractor.youtube import YoutubeIE
from haruhi_dl.extractor.common import InfoExtractor
from haruhi_dl.postprocessor.common import PostProcessor
from haruhi_dl.utils import ExtractorError, match_filter_func

View File

@ -12,11 +12,12 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from test.helper import gettestcases
from haruhi_dl.extractor import (
FacebookIE,
gen_extractors,
YoutubeIE,
)
from haruhi_dl.extractor import gen_extractors
# extractors must be imported directly from their files,
# __init__.py points to lazy_extractors, which have no additional attributes/methods
from haruhi_dl.extractor.youtube import YoutubeIE
from haruhi_dl.extractor.facebook import FacebookIE
class TestAllURLsMatching(unittest.TestCase):