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:
Daniel Porter 2024-04-24 17:42:36 +01:00
parent 51248d1727
commit e658127239

View file

@ -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')