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

Function ctx

python/e2e/conftest.py:23–30  ·  view source on GitHub ↗

Create and teardown a test context shared across all tests in this module.

(request)

Source from the content-addressed store, hash-verified

21
22@pytest_asyncio.fixture(scope="module", loop_scope="module")
23async def ctx(request):
24 """Create and teardown a test context shared across all tests in this module."""
25 context = E2ETestContext()
26 await context.setup()
27 yield context
28 any_failed = request.session.stash.get("any_test_failed", False)
29 skip_writing_cache = any_failed or bool(os.environ.get("GITHUB_ACTIONS"))
30 await context.teardown(test_failed=skip_writing_cache)
31
32
33@pytest_asyncio.fixture(autouse=True, loop_scope="module")

Callers

nothing calls this directly

Calls 4

setupMethod · 0.95
teardownMethod · 0.95
E2ETestContextClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected