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

Function test_evaluate_unicode

tests_python/test_debugger_json.py:2625–2647  ·  view source on GitHub ↗
(case_setup_dap)

Source from the content-addressed store, hash-verified

2623
2624@pytest.mark.skipif(IS_JYTHON, reason="Putting unicode on frame vars does not work on Jython.")
2625def test_evaluate_unicode(case_setup_dap):
2626 with case_setup_dap.test_file("_debugger_case_local_variables.py") as writer:
2627 json_facade = JsonFacade(writer)
2628
2629 json_facade.write_set_breakpoints(writer.get_line_index_with_content("Break 2 here"))
2630 json_facade.write_make_initial_run()
2631
2632 json_hit = json_facade.wait_for_thread_stopped()
2633 json_hit = json_facade.get_stack_as_json_hit(json_hit.thread_id)
2634
2635 evaluate_response = json_facade.evaluate("\u16a0", json_hit.frame_id)
2636
2637 evaluate_response_body = evaluate_response.body.to_dict()
2638
2639 assert evaluate_response_body == {
2640 "result": "'\u16a1'",
2641 "type": "str",
2642 "variablesReference": 0,
2643 "presentationHint": {"attributes": ["rawString"]},
2644 }
2645
2646 json_facade.write_continue()
2647 writer.finished_ok = True
2648
2649
2650def test_evaluate_exec_unicode(case_setup_dap):

Callers

nothing calls this directly

Calls 10

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
to_dictMethod · 0.45

Tested by

no test coverage detected