MCPcopy Create free account
hub / github.com/Delgan/loguru / test_remove_enqueue

Function test_remove_enqueue

tests/test_remove.py:56–62  ·  view source on GitHub ↗
(writer)

Source from the content-addressed store, hash-verified

54
55
56def test_remove_enqueue(writer):
57 i = logger.add(writer, format="{message}", enqueue=True)
58 logger.debug("1")
59 time.sleep(0.1)
60 logger.remove(i)
61 logger.debug("2")
62 assert writer.read() == "1\n"
63
64
65def test_remove_enqueue_filesink(tmp_path):

Callers

nothing calls this directly

Calls 4

addMethod · 0.80
debugMethod · 0.80
removeMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected