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
Due to the actual call of upload occurring within retry I can't actually get at the actual call site I'd like to mock. Currently you can rewrite this code to be:
Which makes me feel like we should update @mock to allow just @mock upload to re-write the expression to essentially be (args; kwargs...) -> @mock upload(args...; kwargs...). I also have a suspicion this will help with solving #80
The text was updated successfully, but these errors were encountered:
I encountered a scenario where I wanted to use
@mock
not on a call site but rather on a reference to a function:Due to the actual call of
upload
occurring withinretry
I can't actually get at the actual call site I'd like to mock. Currently you can rewrite this code to be:Which makes me feel like we should update
@mock
to allow just@mock upload
to re-write the expression to essentially be(args; kwargs...) -> @mock upload(args...; kwargs...)
. I also have a suspicion this will help with solving #80The text was updated successfully, but these errors were encountered: