MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / check_process_event

Function check_process_event

tests_python/test_debugger_json.py:4260–4272  ·  view source on GitHub ↗
(json_facade, start_method)

Source from the content-addressed store, hash-verified

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")

Callers 1

test_wait_for_attachFunction · 0.85

Calls 3

write_attachMethod · 0.80
write_launchMethod · 0.80
mark_messagesMethod · 0.80

Tested by

no test coverage detected