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