mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Install multi-hook repositories only once
This commit is contained in:
parent
fcdd638134
commit
6cde287a1e
3 changed files with 9 additions and 9 deletions
|
|
@ -466,7 +466,7 @@ def test_venvs(tempdir_factory, store):
|
|||
config = make_config_from_repo(path)
|
||||
repo = Repository.create(config, store)
|
||||
venv, = repo._venvs()
|
||||
assert venv == (mock.ANY, 'python', python.get_default_version(), [])
|
||||
assert venv == (mock.ANY, 'python', python.get_default_version(), ())
|
||||
|
||||
|
||||
def test_additional_dependencies(tempdir_factory, store):
|
||||
|
|
@ -474,8 +474,8 @@ def test_additional_dependencies(tempdir_factory, store):
|
|||
config = make_config_from_repo(path)
|
||||
config['hooks'][0]['additional_dependencies'] = ['pep8']
|
||||
repo = Repository.create(config, store)
|
||||
venv, = repo._venvs()
|
||||
assert venv == (mock.ANY, 'python', python.get_default_version(), ['pep8'])
|
||||
env, = repo._venvs()
|
||||
assert env == (mock.ANY, 'python', python.get_default_version(), ('pep8',))
|
||||
|
||||
|
||||
def test_additional_dependencies_roll_forward(tempdir_factory, store):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue