mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-25 12:12:34 +01:00
enable extractor tests without filters
$ python test_extractors.py all
This commit is contained in:
parent
34e6e1099e
commit
ce55ec6490
@ -51,17 +51,20 @@ def _generate_test(extr, tcase):
|
|||||||
|
|
||||||
|
|
||||||
skip = [
|
skip = [
|
||||||
# dont work on travis-ci
|
# don't work on travis-ci
|
||||||
"exhentai", "kissmanga", "mangafox", "dynastyscans", "nijie",
|
"exhentai", "kissmanga", "mangafox", "dynastyscans", "nijie",
|
||||||
# temporary issues
|
# temporary issues
|
||||||
"chronos", "coreimg",
|
"chronos", "coreimg", "imgbox",
|
||||||
]
|
]
|
||||||
# enable selective testing for direct calls
|
# enable selective testing for direct calls
|
||||||
if __name__ == '__main__' and len(sys.argv) > 1:
|
if __name__ == '__main__' and len(sys.argv) > 1:
|
||||||
extractors = [
|
if sys.argv[1].lower() == "all":
|
||||||
extr for extr in extractor.extractors()
|
extractors = extractor.extractors()
|
||||||
if extr.category in sys.argv
|
else:
|
||||||
]
|
extractors = [
|
||||||
|
extr for extr in extractor.extractors()
|
||||||
|
if extr.category in sys.argv
|
||||||
|
]
|
||||||
del sys.argv[1:]
|
del sys.argv[1:]
|
||||||
else:
|
else:
|
||||||
extractors = [
|
extractors = [
|
||||||
|
Loading…
Reference in New Issue
Block a user