MCPcopy
hub / github.com/ArchiveBox/ArchiveBox / test_add_arg_file

Method test_add_arg_file

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

Source from the content-addressed store, hash-verified

160 assert len(all_links) == 30
161
162 def test_add_arg_file(self):
163 test_file = Path(OUTPUT_DIR) / 'test.txt'
164 with open(test_file, 'w+', encoding='utf') as f:
165 f.write(test_urls)
166
167 with output_hidden():
168 archivebox_add.main([test_file])
169
170 all_links = load_main_index(out_dir=OUTPUT_DIR)
171 assert len(all_links) == 12
172 os.remove(test_file)
173
174 def test_add_stdin_url(self):
175 with output_hidden():

Callers

nothing calls this directly

Calls 2

output_hiddenFunction · 0.85
load_main_indexFunction · 0.85

Tested by

no test coverage detected