(pyfile, target, run)
| 282 | |
| 283 | |
| 284 | def test_breakpoint_in_nonexistent_file(pyfile, target, run): |
| 285 | @pyfile |
| 286 | def code_to_debug(): |
| 287 | import debuggee |
| 288 | |
| 289 | debuggee.setup() |
| 290 | |
| 291 | with debug.Session() as session: |
| 292 | with run(session, target(code_to_debug)): |
| 293 | breakpoints = session.set_breakpoints("nonexistent_file.py", [1]) |
| 294 | assert breakpoints == [ |
| 295 | { |
| 296 | "verified": False, |
| 297 | "message": "Breakpoint in file that does not exist.", |
| 298 | "source": some.dict.containing( |
| 299 | {"path": some.path("nonexistent_file.py")} |
| 300 | ), |
| 301 | "line": 1, |
| 302 | "id": 0, |
| 303 | } |
| 304 | ] |
| 305 | |
| 306 | |
| 307 | @pytest.mark.flaky(retries=2, delay=1) |
nothing calls this directly
no test coverage detected
searching dependent graphs…