snaptol.snapshot.auto_update

Contents

snaptol.snapshot.auto_update#

snaptol.snapshot.auto_update(method)[source]#

Decorator that handles snapshot updates and comparisons for testing functions.

Parameters:

method (TypeVar(F, bound= Callable[..., Any])) – The testing function to wrap.

Raises:

AssertionError – If snapshot not found and snaptol_update is False.

Return type:

TypeVar(F, bound= Callable[..., Any])