MCPcopy Create free account
hub / github.com/instantdb/instant / factory

Function factory

client/packages/python/tests/conftest.py:31–40  ·  view source on GitHub ↗
(
        responder: Callable[[httpx.Request], httpx.Response],
    )

Source from the content-addressed store, hash-verified

29 """
30
31 def factory(
32 responder: Callable[[httpx.Request], httpx.Response],
33 ) -> tuple[httpx.MockTransport, list[httpx.Request]]:
34 captured: list[httpx.Request] = []
35
36 def handler(request: httpx.Request) -> httpx.Response:
37 captured.append(request)
38 return responder(request)
39
40 return httpx.MockTransport(handler), captured
41
42 return factory

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected