MCPcopy Create free account
hub / github.com/github/copilot-sdk / bearer_fixture

Function bearer_fixture

python/e2e/test_byok_bearer_token_provider_e2e.py:101–112  ·  view source on GitHub ↗
(ctx: E2ETestContext)

Source from the content-addressed store, hash-verified

99
100@pytest_asyncio.fixture(loop_scope="module")
101async def bearer_fixture(ctx: E2ETestContext):
102 handler = _CapturingRequestHandler()
103 client = build_isolated_client(ctx, handler)
104 await client.start()
105 try:
106 yield client, handler
107 finally:
108 try:
109 await client.stop()
110 except Exception:
111 # Best-effort teardown during fixture cleanup.
112 pass
113
114
115async def _run_turn(client, providers, models, selection_id: str, prompt: str) -> None:

Callers

nothing calls this directly

Calls 4

build_isolated_clientFunction · 0.85
startMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…