(json_facade, start_method)
| 4258 | assert len(started_events) >= 1 |
| 4259 | |
| 4260 | def check_process_event(json_facade, start_method): |
| 4261 | if start_method == "attach": |
| 4262 | json_facade.write_attach() |
| 4263 | |
| 4264 | elif start_method == "launch": |
| 4265 | json_facade.write_launch() |
| 4266 | |
| 4267 | else: |
| 4268 | raise AssertionError("Unexpected: %s" % (start_method,)) |
| 4269 | |
| 4270 | process_events = json_facade.mark_messages(ProcessEvent) |
| 4271 | assert len(process_events) == 1 |
| 4272 | assert next(iter(process_events)).body.startMethod == start_method |
| 4273 | |
| 4274 | with case_setup_remote_attach_to_dap.test_file("_debugger_case_wait_for_attach.py", host_port[1]) as writer: |
| 4275 | writer.TEST_FILE = debugger_unittest._get_debugger_test_file("_debugger_case_wait_for_attach_impl.py") |
no test coverage detected