MCPcopy
hub / github.com/Delgan/loguru / test_file_path_sink

Function test_file_path_sink

tests/test_add_sinks.py:59–63  ·  view source on GitHub ↗
(rep, path_type, tmp_path)

Source from the content-addressed store, hash-verified

57@repetitions
58@pytest.mark.parametrize("path_type", [str, pathlib.Path])
59def test_file_path_sink(rep, path_type, tmp_path):
60 file = tmp_path / "test.log"
61 sink = path_type(str(file))
62 log(sink, rep)
63 assert file.read_text() == expected * rep
64
65
66@repetitions

Callers

nothing calls this directly

Calls 1

logFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…