You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See where assignments and spied attribute access happens in the stack
Access helpers
my_patch=MegaPatch.it(Foo)
my_patch.megainstance# the instance (instead of class) mock# context manager helpersmy_patch.set_context_manager_return_value(1)
my_patch.set_context_manager_side_effect(Exception("IO Error!"))
my_patch.set_context_manager_exit_side_effect(Exception("Failed to close transaction!"))