-
- Downloads
Task SW-381: Mocking needs the path to the object not the source
Reminder for myself: Mocking is odd and does not follow common sense. When I want to mock out a function joe that is imported into foo.bar like this: from there.here.willy import joe then I have to mock it like so: @mock.patch("foo.bar.joe") Common sense would tell to mock it like so: @mock.patch("there.here.willy.joe")
Please register or sign in to comment