Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
43
def
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
53
def
test_extra_dict(capsys):
Callers
nothing calls this directly
Calls
3
add
Method · 0.80
error
Method · 0.80
remove
Method · 0.80
Tested by
no test coverage detected