Python Mock Frameworks
brunningonline.net·1d
🐛Fuzzing
Preview
Report Post

Given that I’m speaking on Python mocking shortly, I thought I’d better dig through my accumulated bookmarks and see what I’m missing. PyMock is what I’ve been using up till now. It’s heavily inspired by EasyMock , a mocking style I’m used to. It’s pretty good, really. The docs really could be better, and the failure messages are not very helpful, but it does the job. But then I found Mox . Superficially, it’s very similar to PyMock. It’s also based on EasyMock. But wherever Mox does differ from PyMock, it’s better. It’s much better documented than PyDoc, and has more meaningful, helpful failure messages. I think it’s has more functionality, too, with some nice comparators , side effects and callbacks . StubOutWithMock() is nice too. But it’s possible that PyMock has all of this - given th…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help