/
githubmirror
/
salt
Обзор
Документация
Войти
/
githubmirror
/
salt
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/integration/minion/test_executor.py
28 строк
770 B
Pedro Algarvio
Update to isort 5.10.1
01 авг 2022, 21:49
01 авг 2022, 21:49
4d49013
Код
Авторство
О чём код?
import logging import pytest from tests.support.case import ModuleCase, ShellCase log = logging.getLogger(__name__) class ExecutorTest(ModuleCase, ShellCase): def setup(self): self.run_function("saltutil.sync_all") @pytest.mark.slow_test def test_executor(self): """ test that dunders are set """ data = self.run_call("test.arg --module-executors=arg") self.assertIn("test.arg fired", "".join(data)) @pytest.mark.slow_test def test_executor_with_multijob(self): """ test that executor is fired when sending a multifunction job """ data = self.run_salt("'*' test.arg,test.arg foo,bar --module-executors=arg") self.assertIn("test.arg fired", "".join(data))