/
niceSOFT
/
python3-hatchling
Обзор
Документация
Войти
/
niceSOFT
/
python3-hatchling
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/cli/config/test_restore.py
25 строк
660 B
Dimitri Papadopoulos Orfanos
Upgrade Ruff to 0.13.2 (#1890)
28 сен 2025, 21:20
Не верифицирован
28 сен 2025, 21:20
aff6f39
Код
Авторство
О чём код?
def test_standard(hatch, config_file): config_file.model.project = "foo" config_file.save() result = hatch("config", "restore") assert result.exit_code == 0, result.output assert result.output == "Settings were successfully restored.\n" config_file.load() assert config_file.model.project == "" def test_allow_invalid_config(hatch, config_file, helpers): config_file.model.project = ["foo"] config_file.save() result = hatch("config", "restore") assert result.exit_code == 0, result.output assert result.output == helpers.dedent( """ Settings were successfully restored. """ )