Skip to content

v0.4.1 - Optional Caller Verification

Choose a tag to compare

@pr4bh4sh pr4bh4sh released this 07 Dec 22:42
· 8 commits to master since this release

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_CALLER environment variable
  • Toggle check programmatically with set_check_caller() and get_check_caller() functions
  • Documented usage in README

Usage

Disable via environment variable:

DELAYED_ASSERT_CHECK_CALLER=0 python -m unittest example_unittest.py

Disable 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.