(pyfile, target, run)
| 13 | |
| 14 | |
| 15 | def test_cli_options_under_file_connect(pyfile, target, run): |
| 16 | @pyfile |
| 17 | def code_to_debug(): |
| 18 | import dataclasses |
| 19 | import debugpy |
| 20 | |
| 21 | import debuggee |
| 22 | from debuggee import backchannel |
| 23 | |
| 24 | debuggee.setup() |
| 25 | backchannel.send(dataclasses.asdict(debugpy.get_cli_options())) |
| 26 | |
| 27 | with debug.Session() as session: |
| 28 | backchannel = session.open_backchannel() |
| 29 | |
| 30 | with run(session, target(code_to_debug)): |
| 31 | pass |
| 32 | |
| 33 | cli_options = backchannel.receive() |
| 34 | assert cli_options['mode'] == 'connect' |
| 35 | assert cli_options['target_kind'] == 'file' |
nothing calls this directly
no test coverage detected
searching dependent graphs…