MCPcopy Create free account
hub / github.com/debpalash/VoiceStudio / instance_cache

Function instance_cache

tests/test_engine_memory.py:117–123  ·  view source on GitHub ↗

A stand-in for engines._ENGINE_INSTANCES keyed by class.

(monkeypatch)

Source from the content-addressed store, hash-verified

115
116@pytest.fixture
117def instance_cache(monkeypatch):
118 """A stand-in for engines._ENGINE_INSTANCES keyed by class."""
119 import api.routers.engines as eng
120
121 cache: dict = {}
122 monkeypatch.setattr(eng, "_ENGINE_INSTANCES", cache, raising=False)
123 return cache
124
125
126async def _evict(keep):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected