mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 01:51:46 +04:00
pre-commit gc
This commit is contained in:
parent
d7f5c6f979
commit
9e34e6e316
12 changed files with 412 additions and 116 deletions
|
|
@ -21,7 +21,6 @@ def fake_old_dir(tempdir_factory):
|
|||
|
||||
|
||||
def test_clean(store, fake_old_dir):
|
||||
store.require_created()
|
||||
assert os.path.exists(fake_old_dir)
|
||||
assert os.path.exists(store.directory)
|
||||
clean(store)
|
||||
|
|
@ -30,6 +29,7 @@ def test_clean(store, fake_old_dir):
|
|||
|
||||
|
||||
def test_clean_idempotent(store):
|
||||
clean(store)
|
||||
assert not os.path.exists(store.directory)
|
||||
clean(store)
|
||||
assert not os.path.exists(store.directory)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue