Repository navigation
v0.4.1 - Optional Caller Verification
What's New in 0.4.1
Added optional caller stack verification - you can now use expect() in helper methods or custom test runners without it raising an error.
Features
- Toggle caller verification via
DELAYED_ASSERT_CHECK_CALLERenvironment variable - Toggle check programmatically with
set_check_caller()andget_check_caller()functions - Documented usage in README
Usage
Disable via environment variable:
DELAYED_ASSERT_CHECK_CALLER=0 python -m unittest example_unittest.pyDisable programmatically:
from delayed_assert.delayed_assert import set_check_caller
set_check_caller(False)Backward Compatibility
Caller check is enabled by default to maintain existing behavior.