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

Function test_default_with_function

tests/test_exceptions_catch.py:417–422  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

415
416
417def test_default_with_function():
418 @logger.catch(default=42)
419 def foo():
420 1 / 0 # noqa: B018
421
422 assert foo() == 42
423
424
425def test_default_with_generator():

Callers

nothing calls this directly

Calls 1

fooFunction · 0.70

Tested by

no test coverage detected