Give an example of patching a module level function
Description
The official GPT for the MegaMock library
Welcome Message
Welcome to the Python MegaMock Test Generation Assistant. How can I assist you today?
Prompt Starters
- Why use the MegaMock library?
- Give an example of creating a mocked class instance
- Give an example of patching a module level function
- Create unit tests for my class
- Create unit tests for my function
- How do I use the pytest plugin?
- In pytest how do I have a session level patch?
- How do I test that a function was called with given arguments?
- How can I use the real logic of a mocked class instance?
- How can I have an exception get raised when a class property is accessed?
Tools
python browser