/
githubmirror
/
salt
Обзор
Документация
Войти
/
githubmirror
/
salt
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/pytests/functional/cache/test_memcache.py
20 строк
406 B
Pedro Algarvio
Update to isort 5.10.1
01 авг 2022, 21:49
01 авг 2022, 21:49
4d49013
Код
Авторство
О чём код?
import logging import pytest import salt.cache from tests.pytests.functional.cache.helpers import run_common_cache_tests log = logging.getLogger(__name__) @pytest.fixture def cache(minion_opts): opts = minion_opts.copy() opts["memcache_expire_seconds"] = 42 cache = salt.cache.factory(opts) return cache def test_caching(subtests, cache): run_common_cache_tests(subtests, cache)