MCPcopy Create free account
hub / github.com/microsoft/debugpy / expected_subprocess_config

Function expected_subprocess_config

tests/debugpy/test_multiproc.py:24–39  ·  view source on GitHub ↗
(parent_session)

Source from the content-addressed store, hash-verified

22
23
24def expected_subprocess_config(parent_session):
25 config = dict(parent_session.config)
26 for key in "args", "listen", "postDebugTask", "preLaunchTask", "processId":
27 config.pop(key, None)
28 for key in "python", "pythonArgs", "pythonPath":
29 if key in config:
30 config[key] = some.thing
31 config.update(
32 {
33 "name": some.str,
34 "request": "attach",
35 "subProcessId": some.int,
36 "connect": {"host": some.str, "port": some.int},
37 }
38 )
39 return config
40
41
42@pytest.mark.parametrize(

Callers 4

test_multiprocessingFunction · 0.85
test_subprocessFunction · 0.85
test_subprocess_replaceFunction · 0.85

Calls 2

popMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…