1
0
Fork 0

feat: Move setup_django to an inner module

This commit is contained in:
Cristian 2020-10-26 08:02:04 -05:00
parent e1d0b8bce7
commit a6bee5f111
3 changed files with 4 additions and 5 deletions

View file

@ -1,5 +1 @@
__package__ = 'archivebox' __package__ = 'archivebox'
from .config import setup_django, OUTPUT_DIR
print(OUTPUT_DIR)
setup_django()

View file

@ -134,3 +134,7 @@ __all__ = (
'run_subcommand', 'run_subcommand',
*SUBCOMMANDS.keys(), *SUBCOMMANDS.keys(),
) )
from ..config import setup_django
setup_django()

View file

@ -32,7 +32,6 @@ def test_depth_flag_0_crawls_only_the_arg_page(tmp_path, process, disable_extrac
env=disable_extractors_dict, env=disable_extractors_dict,
) )
breakpoint()
archived_item_path = list(tmp_path.glob('archive/**/*'))[0] archived_item_path = list(tmp_path.glob('archive/**/*'))[0]
with open(archived_item_path / "index.json", "r") as f: with open(archived_item_path / "index.json", "r") as f:
output_json = json.load(f) output_json = json.load(f)