(case_setup_dap, pyfile)
| 2210 | |
| 2211 | |
| 2212 | def 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 | |
| 2238 | def test_evaluate_numpy(case_setup_dap, pyfile): |
nothing calls this directly
no test coverage detected