MCPcopy Index your code
hub / github.com/long2ice/fastapi-cache / _init_cache

Function _init_cache

tests/test_decorator.py:14–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13@pytest.fixture(autouse=True)
14def _init_cache() -> Generator[Any, Any, None]: # pyright: ignore[reportUnusedFunction]
15 FastAPICache.init(InMemoryBackend())
16 yield
17 FastAPICache.reset()
18
19
20def test_datetime() -> None:

Callers

nothing calls this directly

Calls 3

InMemoryBackendClass · 0.90
resetMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected