MCPcopy
hub / github.com/ArchiveBox/ArchiveBox / test_basic_init

Method test_basic_init

archivebox/cli/tests.py:109–116  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

107 shutil.rmtree(OUTPUT_DIR, ignore_errors=True)
108
109 def test_basic_init(self):
110 with output_hidden():
111 archivebox_init.main([])
112
113 assert (Path(OUTPUT_DIR) / SQL_INDEX_FILENAME).exists()
114 assert (Path(OUTPUT_DIR) / JSON_INDEX_FILENAME).exists()
115 assert (Path(OUTPUT_DIR) / HTML_INDEX_FILENAME).exists()
116 assert len(load_main_index(out_dir=OUTPUT_DIR)) == 0
117
118 def test_conflicting_init(self):
119 with open(Path(OUTPUT_DIR) / 'test_conflict.txt', 'w+', encoding='utf-8') as f:

Callers

nothing calls this directly

Calls 2

output_hiddenFunction · 0.85
load_main_indexFunction · 0.85

Tested by

no test coverage detected