mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Only print that the lock is being acquired when waiting
This commit is contained in:
parent
4aa787db19
commit
7cb3e00731
5 changed files with 34 additions and 28 deletions
|
|
@ -559,8 +559,8 @@ def test_reinstall(tempdir_factory, store, log_info_mock):
|
|||
config = make_config_from_repo(path)
|
||||
repo = Repository.create(config, store)
|
||||
repo.require_installed()
|
||||
# We print some logging during clone (2) + install (4)
|
||||
assert log_info_mock.call_count == 6
|
||||
# We print some logging during clone (1) + install (3)
|
||||
assert log_info_mock.call_count == 4
|
||||
log_info_mock.reset_mock()
|
||||
# Reinstall with same repo should not trigger another install
|
||||
repo.require_installed()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue