MCPcopy Index your code
hub / github.com/github/copilot-sdk / test_set_open_canvases_round_trip

Function test_set_open_canvases_round_trip

python/test_canvas.py:204–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

202
203
204def test_set_open_canvases_round_trip():
205 inst = OpenCanvasInstance(
206 canvas_id="c",
207 extension_id="e",
208 instance_id="i",
209 )
210 session = CopilotSession("sess-1", client=None)
211 session._set_open_canvases([inst])
212 assert session.open_canvases == [inst]
213
214
215def test_session_canvas_opened_updates_open_canvases(caplog: pytest.LogCaptureFixture):

Callers

nothing calls this directly

Calls 3

_set_open_canvasesMethod · 0.95
CopilotSessionClass · 0.90
OpenCanvasInstanceClass · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…