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

Function write_log

tests/pytest_fixtures.py:40–45  ·  view source on GitHub ↗
(filename, data)

Source from the content-addressed store, hash-verified

38@pytest.fixture(autouse=True)
39def test_wrapper(request, long_tmpdir):
40 def write_log(filename, data):
41 filename = os.path.join(log.log_dir, filename)
42 if not isinstance(data, bytes):
43 data = data.encode("utf-8")
44 with open(filename, "wb") as f:
45 f.write(data)
46
47 session.Session.reset_counter()
48

Callers 1

test_wrapperFunction · 0.85

Calls 2

joinMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…