Closed ScottDuchin closed 4 years ago
https://mockito-python.readthedocs.io/en/latest/the-functions.html
the spy2 function uses spy and not spy2 in the example
import time spy(time.time) do_work(...) # nothing injected, uses global patched time module verify(time).time()
time
Good eyes! Thanks for letting me know.
https://mockito-python.readthedocs.io/en/latest/the-functions.html
the spy2 function uses spy and not spy2 in the example
import time spy(time.time) do_work(...) # nothing injected, uses global patched
time
module verify(time).time()