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

Function test_null_handler

tests/test_standard_handler.py:43–50  ·  view source on GitHub ↗
(capsys)

Source from the content-addressed store, hash-verified

41
42
43def test_null_handler(capsys):
44 logger.add(NullHandler())
45 logger.error("nope")
46 logger.remove()
47
48 out, err = capsys.readouterr()
49 assert out == ""
50 assert err == ""
51
52
53def test_extra_dict(capsys):

Callers

nothing calls this directly

Calls 3

addMethod · 0.80
errorMethod · 0.80
removeMethod · 0.80

Tested by

no test coverage detected