MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / test_clean

Function test_clean

tests/commands/clean_test.py:23–28  ·  view source on GitHub ↗
(store, fake_old_dir)

Source from the content-addressed store, hash-verified

21
22
23def test_clean(store, fake_old_dir):
24 assert os.path.exists(fake_old_dir)
25 assert os.path.exists(store.directory)
26 clean(store)
27 assert not os.path.exists(fake_old_dir)
28 assert not os.path.exists(store.directory)
29
30
31def test_clean_idempotent(store):

Callers

nothing calls this directly

Calls 2

cleanFunction · 0.90
existsMethod · 0.80

Tested by

no test coverage detected