My question is "what are some things that can cause mock.patch
to fail?"
My question was not "what is causing my specific testcase to fail?"
I feel like the mod closed my question because he wanted to the question to be the second one, not the first one.
The answer to my actual question could be items like this:
- "You forgot to call super.tearDown in one of your TestCases"
- "You are mocking
tasks.assign_agent
, when you should be mockingaccounts.tasks.assign_agent
I feel like these items would be useful for someone experiencing a similar issue. I feel like the mod closed it because he couldn't answer the question and then went into "The question must be wrong" mode, which begs the question, what questions are being missed because the mods are too zealous?
I could ask a very specific question, but that answer would only be useful for someone with that very specific problem.
I don't feel like there are TOO many answers to this question.