Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • I see. Would it make sense to swap (mock.patch) process_foo out with some kind of dummy implementation, and assert instead of the return value of view? That way I could avoid the assert_called_once_with call (which I consider a code smell). Commented Jan 23, 2019 at 16:31
  • I think I like that better, yeah. Commented Jan 23, 2019 at 16:45