mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Test perl dependencies using AtVersion syntax
Ensure perl dependencies that use Pkg::Name@Version definitions work with the cpanm utility.
This commit is contained in:
parent
51248d1727
commit
e658127239
1 changed files with 13 additions and 0 deletions
|
|
@ -75,3 +75,16 @@ def test_perl_additional_dependencies(mock_exe_exists, cpanm, tmp_path):
|
|||
mock_exe_exists.assert_called_once_with('cpanm')
|
||||
assert ret == 0
|
||||
assert out.startswith(b'This is perltidy, v20211029')
|
||||
|
||||
|
||||
def test_perl_additional_dependencies_at_syntax(tmp_path):
|
||||
_make_local_repo(str(tmp_path))
|
||||
|
||||
ret, out = run_language(
|
||||
tmp_path,
|
||||
perl,
|
||||
'perltidy --version',
|
||||
deps=('Perl::Tidy@20211029',),
|
||||
)
|
||||
assert ret == 0
|
||||
assert out.startswith(b'This is perltidy, v20211029')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue