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

Function test_evaluate_none

tests_python/test_debugger_json.py:2212–2235  ·  view source on GitHub ↗
(case_setup_dap, pyfile)

Source from the content-addressed store, hash-verified

2210
2211
2212def test_evaluate_none(case_setup_dap, pyfile):
2213
2214 @pyfile
2215 def eval_none():
2216 print("TEST SUCEEDED") # break here
2217
2218 with case_setup_dap.test_file(eval_none) as writer:
2219 json_facade = JsonFacade(writer)
2220
2221 json_facade.write_launch(justMyCode=False)
2222
2223 json_facade.write_set_breakpoints(writer.get_line_index_with_content("break here"))
2224 json_facade.write_make_initial_run()
2225
2226 json_hit = json_facade.wait_for_thread_stopped()
2227 json_hit = json_facade.get_stack_as_json_hit(json_hit.thread_id)
2228
2229 evaluate_response = json_facade.evaluate("None", json_hit.frame_id, context="repl")
2230 assert evaluate_response.body.result is not None
2231 assert evaluate_response.body.result == ""
2232
2233 json_facade.write_continue()
2234
2235 writer.finished_ok = True
2236
2237
2238def test_evaluate_numpy(case_setup_dap, pyfile):

Callers

nothing calls this directly

Calls 10

write_launchMethod · 0.95
write_set_breakpointsMethod · 0.95
get_stack_as_json_hitMethod · 0.95
evaluateMethod · 0.95
write_continueMethod · 0.95
JsonFacadeClass · 0.85
test_fileMethod · 0.80

Tested by

no test coverage detected