This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# So, a bit like mocking/patching, it depends on how the thing you're patching is imported *where it's used*. | |
# If the code that uses it is in a module called `client`, you'd want to do one of the following: | |
# If client.py looks like this: | |
from django.things import victim | |
def useful_function(): | |
victim(blah) |