()
| 3 | |
| 4 | def test_init(bench_dvc, tmp_dir, scm): |
| 5 | def _cleanup_dir(): |
| 6 | for item in tmp_dir.iterdir(): |
| 7 | if item.is_dir(): |
| 8 | if item.name != ".git": |
| 9 | shutil.rmtree(item) |
| 10 | else: |
| 11 | item.unlink() |
| 12 | |
| 13 | bench_dvc("init", setup=_cleanup_dir, rounds=100, warmup_rounds=1) |