/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
contrib/python/yarl/tests/test_cache.py
28 строк
615 B
rekby
KIKIMR-19900 switch arcadia to python ydb sdk from contrib
14 дек 2023, 17:42
14 дек 2023, 17:42
5997f82
Код
Авторство
О чём код?
import yarl # Don't check the actual behavior but make sure that calls are allowed def teardown_module(): yarl.cache_configure() def test_cache_clear() -> None: yarl.cache_clear() def test_cache_info() -> None: info = yarl.cache_info() assert info.keys() == {"idna_encode", "idna_decode"} def test_cache_configure_default() -> None: yarl.cache_configure() def test_cache_configure_None() -> None: yarl.cache_configure(idna_encode_size=None, idna_decode_size=None) def test_cache_configure_explicit() -> None: yarl.cache_configure(idna_encode_size=128, idna_decode_size=128)