eradiate.testing.regression.RegressionTestFailure#

exception eradiate.testing.regression.RegressionTestFailure#

Raised when a regression test does not pass, i.e. when the comparison against the reference fails.

Deriving from AssertionError is what makes the --force-regen workflow work: pytest_regressions keys its reference regeneration on a failing comparison raising an assertion. It also keeps the failure distinct from the ValueErrors the framework raises for malformed data, so that a caller can tell a failed comparison from a broken one.