/
niceSOFT
/
python3-hatchling
Обзор
Документация
Войти
/
niceSOFT
/
python3-hatchling
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/cli/python/test_find.py
38 строк
1 KB
Dimitri Papadopoulos Orfanos
Upgrade Ruff to 0.13.2 (#1890)
28 сен 2025, 21:20
Не верифицирован
28 сен 2025, 21:20
aff6f39
Код
Авторство
О чём код?
def test_not_installed(hatch, helpers): name = "3.10" result = hatch("python", "find", name) assert result.exit_code == 1, result.output assert result.output == helpers.dedent( f""" Distribution not installed: {name} """ ) def test_binary(hatch, helpers, temp_dir_data, dist_name): install_dir = temp_dir_data / "data" / "pythons" dist = helpers.write_distribution(install_dir, dist_name) result = hatch("python", "find", dist_name) assert result.exit_code == 0, result.output assert result.output == helpers.dedent( f""" {dist.python_path} """ ) def test_parent(hatch, helpers, temp_dir_data, dist_name): install_dir = temp_dir_data / "data" / "pythons" dist = helpers.write_distribution(install_dir, dist_name) result = hatch("python", "find", dist_name, "--parent") assert result.exit_code == 0, result.output assert result.output == helpers.dedent( f""" {dist.python_path.parent} """ )