MCPcopy Create free account
hub / github.com/NVIDIA-NeMo/Switchyard / test_request_processor_runs

Method test_request_processor_runs

tests/test_switchyard.py:347–354  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

345 assert backend.requests[-1].request_type == ChatRequestType.ANTHROPIC
346
347 async def test_request_processor_runs(self):
348 chain = self._make_chain(
349 request_processors=[ModelOverrideProcessor("gpt-4o-mini")],
350 )
351 await chain.call(make_request(model="gpt-4o"))
352 backend = chain._backend
353 assert isinstance(backend, RecordingBackend)
354 assert backend.requests[-1].model == "gpt-4o-mini"
355
356 async def test_multiple_request_processors_chain(self):
357 chain = self._make_chain(

Callers

nothing calls this directly

Calls 4

_make_chainMethod · 0.95
make_requestFunction · 0.70
callMethod · 0.45

Tested by

no test coverage detected