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

Function test_args

tests/debugpy/test_args.py:17–34  ·  view source on GitHub ↗
(pyfile, target, run)

Source from the content-addressed store, hash-verified

15@pytest.mark.parametrize("target", targets.all)
16@pytest.mark.parametrize("run", runners.all)
17def test_args(pyfile, target, run):
18 @pyfile
19 def code_to_debug():
20 import sys
21 import debuggee
22 from debuggee import backchannel
23
24 debuggee.setup()
25 backchannel.send(sys.argv)
26
27 args = ["--arg1", "arg2", "-arg3", "--", "arg4", "-a"]
28
29 with debug.Session() as session:
30 backchannel = session.open_backchannel()
31 with run(session, target(code_to_debug, args=args)):
32 pass
33 argv = backchannel.receive()
34 assert argv == [some.str] + args
35
36
37@pytest.mark.parametrize("target", targets.all)

Callers

nothing calls this directly

Calls 4

open_backchannelMethod · 0.80
receiveMethod · 0.80
runFunction · 0.70
targetFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…