A stand-in for engines._ENGINE_INSTANCES keyed by class.
(monkeypatch)
| 115 | |
| 116 | @pytest.fixture |
| 117 | def 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 | |
| 126 | async def _evict(keep): |
nothing calls this directly
no outgoing calls
no test coverage detected