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,
|
||||
READABILITY_BINARY,
|
||||
READABILITY_VERSION,
|
||||
CHROME_BINARY,
|
||||
)
|
||||
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)
|
||||
output_folder = out_dir.absolute() / "readability"
|
||||
output = str(output_folder)
|
||||
|
||||
document = get_html(link, out_dir)
|
||||
temp_doc = NamedTemporaryFile()
|
||||
|
@ -107,7 +107,7 @@ def save_readability(link: Link, out_dir: Optional[str]=None, timeout: int=TIMEO
|
|||
cmd=cmd,
|
||||
pwd=str(out_dir),
|
||||
cmd_version=READABILITY_VERSION,
|
||||
output=str(output_folder),
|
||||
output=output,
|
||||
status=status,
|
||||
**timer.stats,
|
||||
)
|
||||
|
|
|
@ -15,6 +15,7 @@ def disable_extractors_dict():
|
|||
env.update({
|
||||
"USE_WGET": "false",
|
||||
"USE_SINGLEFILE": "false",
|
||||
"USE_READABILITY": "false",
|
||||
"SAVE_PDF": "false",
|
||||
"SAVE_SCREENSHOT": "false",
|
||||
"SAVE_DOM": "false",
|
||||
|
|
Loading…
Reference in a new issue