(pyfile, tmpdir, run, target)
| 34 | @pytest.mark.parametrize("run", runners.all_attach_socket) |
| 35 | @pytest.mark.parametrize("target", targets.all) |
| 36 | def test_log_dir(pyfile, tmpdir, run, target): |
| 37 | @pyfile |
| 38 | def code_to_debug(): |
| 39 | import debuggee |
| 40 | |
| 41 | debuggee.setup() |
| 42 | |
| 43 | # Depending on the method, the runner will use either `debugpy --log-dir ...` |
| 44 | # or `debugpy.log_to() ...`. |
| 45 | run = run.with_options(log_dir=tmpdir.strpath) |
| 46 | with check_logs(tmpdir, run): |
| 47 | with debug.Session() as session: |
| 48 | session.log_dir = None |
| 49 | |
| 50 | with run(session, target(code_to_debug)): |
| 51 | pass |
| 52 | |
| 53 | |
| 54 | @pytest.mark.parametrize("run", runners.all) |
nothing calls this directly
no test coverage detected
searching dependent graphs…