/
githubmirror
/
salt
Обзор
Документация
Войти
/
githubmirror
/
salt
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/integration/states/test_renderers.py
34 строки
995 B
Pedro Algarvio
Update to isort 5.10.1
01 авг 2022, 21:49
01 авг 2022, 21:49
4d49013
Код
Авторство
О чём код?
""" Integration tests for renderer functions """ import pytest from tests.support.case import ModuleCase @pytest.mark.windows_whitelisted class TestJinjaRenderer(ModuleCase): """ Validate that ordering works correctly """ @pytest.mark.slow_test def test_dot_notation(self): """ Test the Jinja dot-notation syntax for calling execution modules """ ret = self.run_function("state.sls", ["jinja_dot_notation"]) for state_ret in ret.values(): self.assertTrue(state_ret["result"]) @pytest.mark.flaky(max_runs=4) @pytest.mark.slow_test def test_salt_contains_function(self): """ Test if we are able to check if a function exists inside the "salt" wrapper (AliasLoader) which is available on Jinja templates. """ ret = self.run_function("state.sls", ["jinja_salt_contains_function"]) for state_ret in ret.values(): self.assertTrue(state_ret["result"])