(self)
| 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(): |
nothing calls this directly
no test coverage detected