index/stage: move repo collection logic to index

This commit is contained in:
Saugat Pachhai (सौगात)
2023-01-11 19:38:43 +02:00
committed by Ruslan Kuprieiev
parent a814f04ee0
commit 30ec1cf5e9
14 changed files with 308 additions and 453 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ def test_remove(tmp_dir, scm, dvc, run_copy, remove_outs):
for stage in [stage1, stage2, stage3]:
dvc.remove(stage.addressing, outs=remove_outs)
out_exists = (out.exists for out in stage.outs)
assert stage not in dvc.stage.collect_repo()
assert stage not in dvc.index.stages
if remove_outs:
assert not any(out_exists)
else: