MCPcopy Create free account
hub / github.com/microsoft/debugpy / test_log_dir

Function test_log_dir

tests/debugpy/test_log.py:36–51  ·  view source on GitHub ↗
(pyfile, tmpdir, run, target)

Source from the content-addressed store, hash-verified

34@pytest.mark.parametrize("run", runners.all_attach_socket)
35@pytest.mark.parametrize("target", targets.all)
36def 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)

Callers

nothing calls this directly

Calls 4

check_logsFunction · 0.85
with_optionsMethod · 0.80
runFunction · 0.70
targetFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…