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
AssertionErroris what makes the--force-regenworkflow work:pytest_regressionskeys its reference regeneration on a failing comparison raising an assertion. It also keeps the failure distinct from theValueErrors the framework raises for malformed data, so that a caller can tell a failed comparison from a broken one.