/
githubmirror
/
salt
Обзор
Документация
Войти
/
githubmirror
/
salt
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/pytests/integration/grains/test_custom.py
20 строк
464 B
Barney Sowood
Convert test_custom grains test to pytest
18 янв 2025, 01:00
18 янв 2025, 01:00
9a327c5
Код
Авторство
О чём код?
""" Test the custom grains """ import pytest pytestmark = [ pytest.mark.windows_whitelisted, pytest.mark.slow_test, ] def test_grains_passed_to_custom_grain(salt_call_cli): """ test if current grains are passed to grains module functions that have a grains argument """ ret = salt_call_cli.run("grains.item", "custom_grain_test") assert ret.returncode == 0 assert ret.data assert ret.data["custom_grain_test"] == "itworked"