kaste / mockito-python

Mockito is a spying framework
MIT License
123 stars 12 forks source link

bad example in functions #37

Closed ScottDuchin closed 4 years ago

ScottDuchin commented 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()

kaste commented 4 years ago

Good eyes! Thanks for letting me know.