tests: Add readability to ignored methods in tests
This commit is contained in:
parent
dc87d8b68c
commit
8aa7b34de7
2 changed files with 3 additions and 2 deletions
|
@ -19,7 +19,6 @@ from ..config import (
|
||||||
SAVE_READABILITY,
|
SAVE_READABILITY,
|
||||||
READABILITY_BINARY,
|
READABILITY_BINARY,
|
||||||
READABILITY_VERSION,
|
READABILITY_VERSION,
|
||||||
CHROME_BINARY,
|
|
||||||
)
|
)
|
||||||
from ..logging_util import TimedProgress
|
from ..logging_util import TimedProgress
|
||||||
|
|
||||||
|
@ -61,6 +60,7 @@ def save_readability(link: Link, out_dir: Optional[str]=None, timeout: int=TIMEO
|
||||||
|
|
||||||
out_dir = Path(out_dir or link.link_dir)
|
out_dir = Path(out_dir or link.link_dir)
|
||||||
output_folder = out_dir.absolute() / "readability"
|
output_folder = out_dir.absolute() / "readability"
|
||||||
|
output = str(output_folder)
|
||||||
|
|
||||||
document = get_html(link, out_dir)
|
document = get_html(link, out_dir)
|
||||||
temp_doc = NamedTemporaryFile()
|
temp_doc = NamedTemporaryFile()
|
||||||
|
@ -107,7 +107,7 @@ def save_readability(link: Link, out_dir: Optional[str]=None, timeout: int=TIMEO
|
||||||
cmd=cmd,
|
cmd=cmd,
|
||||||
pwd=str(out_dir),
|
pwd=str(out_dir),
|
||||||
cmd_version=READABILITY_VERSION,
|
cmd_version=READABILITY_VERSION,
|
||||||
output=str(output_folder),
|
output=output,
|
||||||
status=status,
|
status=status,
|
||||||
**timer.stats,
|
**timer.stats,
|
||||||
)
|
)
|
||||||
|
|
|
@ -15,6 +15,7 @@ def disable_extractors_dict():
|
||||||
env.update({
|
env.update({
|
||||||
"USE_WGET": "false",
|
"USE_WGET": "false",
|
||||||
"USE_SINGLEFILE": "false",
|
"USE_SINGLEFILE": "false",
|
||||||
|
"USE_READABILITY": "false",
|
||||||
"SAVE_PDF": "false",
|
"SAVE_PDF": "false",
|
||||||
"SAVE_SCREENSHOT": "false",
|
"SAVE_SCREENSHOT": "false",
|
||||||
"SAVE_DOM": "false",
|
"SAVE_DOM": "false",
|
||||||
|
|
Loading…
Reference in a new issue