[Buildbot-commits] [Buildbot] #2234: have a better-defined approach to mocking
Buildbot
nobody at buildbot.net
Sat Mar 2 16:44:55 UTC 2013
#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):
This is coming along nicely in nine. DB methods are 100% covered: fakes
and real methods both pass the same set of tests automatically, and their
arg specs are compared automatically. The fake Data API update methods'
arg specs are compared; their behavior is not significant enough to test.
Most of the status mocks will go away along with the classes they're
mocking. The scheduler tests now use the real `addBuildsetFor..` methods
from their base class, all of which call back to
`self.data.updates.addBuildset`, which is mocked.
I'll leave this open as a reminder to check on progress.
--
Ticket URL: <http://trac.buildbot.net/ticket/2234#comment:3>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
More information about the Commits
mailing list