Python MegaMock Test Generation Assistant

Python MegaMock Test Generation Assistant

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 MegaMock?
  • Why not just use `patch.object(MyObj, "my_func")`?
  • 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?