[Buildbot-commits] [Buildbot] #2234: have a better-defined approach to mocking
Buildbot
nobody at buildbot.net
Sat Mar 10 17:25:46 UTC 2012
#2234: have a better-defined approach to mocking
------------------------+---------------------
Reporter: dustin | Owner: dustin
Type: enhancement | Status: new
Priority: major | Milestone: 0.9.+
Version: 0.8.5 | Resolution:
Keywords: tests |
------------------------+---------------------
Comment (by dustin):
There's no problem with mocking third-party objects -- in fact, that's the
"normal" use of mocks. Synchronizing the mock and the API there has not
been problematic, and should be tested with integration tests.
Mock can do some introspection (and Foord announced that 0.8.0 has
"autospec", which makes it even easier). However, I'd like to check the
signatures directly, rather than relying on the tests to uncover any
inconsistencies by getting an error from mock. If practical, we can do
both!
--
Ticket URL: <http://trac.buildbot.net/ticket/2234#comment:2>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
More information about the Commits
mailing list