mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-18 08:34:41 +04:00
Remove unnecessary files after installation
This commit is contained in:
parent
84ba1fd0c2
commit
51d673dff5
2 changed files with 9 additions and 7 deletions
|
|
@ -553,13 +553,11 @@ def test_additional_golang_dependencies_installed(
|
|||
config['hooks'][0]['additional_dependencies'] = ['github.com/firba1/tpol']
|
||||
repo = Repository.create(config, store)
|
||||
repo.require_installed()
|
||||
with golang.in_env(repo.cmd_runner):
|
||||
gopath = repo.cmd_runner.path(helpers.environment_dir(
|
||||
golang.ENVIRONMENT_DIR, 'default',
|
||||
))
|
||||
env = dict(os.environ, GOPATH=gopath)
|
||||
output = cmd_output('go', 'list', '...', env=env)[1]
|
||||
assert 'github.com/firba1/tpol' in output
|
||||
binaries = os.listdir(repo.cmd_runner.path(
|
||||
helpers.environment_dir(golang.ENVIRONMENT_DIR, 'default'),
|
||||
'bin',
|
||||
))
|
||||
assert 'tpol' in binaries
|
||||
|
||||
|
||||
def test_reinstall(tempdir_factory, store, log_info_mock):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue