(case_setup_dap)
| 1614 | |
| 1615 | |
| 1616 | def test_case_exclude_double_step(case_setup_dap): |
| 1617 | with case_setup_dap.test_file("my_code/my_code_double_step.py") as writer: |
| 1618 | json_facade = JsonFacade(writer) |
| 1619 | json_facade.write_launch( |
| 1620 | justMyCode=False, # i.e.: exclude through rules and not my code |
| 1621 | rules=[ |
| 1622 | {"path": "**/other_noop.py", "include": False}, |
| 1623 | ], |
| 1624 | ) |
| 1625 | |
| 1626 | break_line = writer.get_line_index_with_content("break here") |
| 1627 | json_facade.write_set_breakpoints(break_line) |
| 1628 | json_facade.write_make_initial_run() |
| 1629 | |
| 1630 | json_hit = json_facade.wait_for_thread_stopped(line=break_line) |
| 1631 | json_facade.write_step_in(json_hit.thread_id) |
| 1632 | json_hit = json_facade.wait_for_thread_stopped("step", file="my_code_double_step.py", line=break_line + 1) |
| 1633 | |
| 1634 | json_facade.write_continue() |
| 1635 | writer.finished_ok = True |
| 1636 | |
| 1637 | |
| 1638 | def test_case_update_rules(case_setup_dap): |
nothing calls this directly
no test coverage detected