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

Function provider_ctx

python/e2e/test_provider_endpoint_e2e.py:20–31  ·  view source on GitHub ↗
(ctx: E2ETestContext)

Source from the content-addressed store, hash-verified

18
19@pytest.fixture(scope="module")
20async def provider_ctx(ctx: E2ETestContext):
21 env = {**ctx.get_env(), "COPILOT_ALLOW_GET_PROVIDER_ENDPOINT": "true"}
22 client = CopilotClient(
23 connection=RuntimeConnection.for_stdio(path=ctx.cli_path),
24 working_directory=ctx.work_dir,
25 env=env,
26 github_token=env["GITHUB_TOKEN"],
27 )
28 try:
29 yield ctx, client
30 finally:
31 await client.stop()
32
33
34class TestProviderEndpoint:

Callers

nothing calls this directly

Calls 4

stopMethod · 0.95
CopilotClientClass · 0.90
for_stdioMethod · 0.80
get_envMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…