(pyfile, target, run)
| 15 | @pytest.mark.parametrize("target", targets.all) |
| 16 | @pytest.mark.parametrize("run", runners.all) |
| 17 | def 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) |
nothing calls this directly
no test coverage detected
searching dependent graphs…