Browse Source

tests: Add readability to ignored methods in tests

Cristian 5 years ago
parent
commit
8aa7b34de7
2 changed files with 3 additions and 2 deletions
  1. 2 2
      archivebox/extractors/readability.py
  2. 1 0
      tests/fixtures.py

+ 2 - 2
archivebox/extractors/readability.py

@@ -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,
     )

+ 1 - 0
tests/fixtures.py

@@ -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",