[Buildbot-commits] buildbot/buildbot/test test_buildreq.py, 1.5, 1.6 test_control.py, 1.17, 1.18 test_status.py, 1.43, 1.44
Brian Warner
warner at users.sourceforge.net
Wed Aug 1 20:31:46 UTC 2007
Update of /cvsroot/buildbot/buildbot/buildbot/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23657/buildbot/test
Modified Files:
test_buildreq.py test_control.py test_status.py
Log Message:
[project @ pass around SourceStamp instances rather than tuples. Closes #70.]
Original author: warner at lothar.com
Date: 2007-07-31 06:25:40+00:00
Index: test_buildreq.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_buildreq.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- test_buildreq.py 6 Sep 2006 00:41:55 -0000 1.5
+++ test_buildreq.py 1 Aug 2007 20:31:44 -0000 1.6
@@ -62,7 +62,7 @@
self.failUnlessEqual(sm.branch, "branch1")
self.failUnlessEqual(sm.revision, None)
self.failUnlessEqual(sm.patch, None)
- self.failUnlessEqual(sm.changes, [])
+ self.failUnlessEqual(sm.changes, ())
ss = b1r1.mergeWith([b1r1])
self.failUnlessEqual(ss, S("branch1", "rev1", None, None))
Index: test_control.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_control.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- test_control.py 1 Aug 2007 20:31:27 -0000 1.17
+++ test_control.py 1 Aug 2007 20:31:44 -0000 1.18
@@ -100,5 +100,5 @@
self.failUnless(bs.isFinished())
self.failUnlessEqual(bs.getResults(), SUCCESS)
#self.failUnlessEqual(bs.getResponsibleUsers(), ["bob"]) # TODO
- self.failUnlessEqual(bs.getChanges(), [])
+ self.failUnlessEqual(bs.getChanges(), ())
#self.failUnlessEqual(bs.getReason(), "forced") # TODO
Index: test_status.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_status.py,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- test_status.py 1 Aug 2007 20:31:27 -0000 1.43
+++ test_status.py 1 Aug 2007 20:31:44 -0000 1.44
@@ -912,9 +912,11 @@
self.failUnless(b)
self.failUnlessEqual(b.getBuilder().getName(), "dummy")
self.failUnlessEqual(b.getNumber(), 0)
- self.failUnlessEqual(b.getSourceStamp(), (None, None, None))
+ self.failUnlessEqual(b.getSourceStamp().branch, None)
+ self.failUnlessEqual(b.getSourceStamp().patch, None)
+ self.failUnlessEqual(b.getSourceStamp().revision, None)
self.failUnlessEqual(b.getReason(), "forced build for testing")
- self.failUnlessEqual(b.getChanges(), [])
+ self.failUnlessEqual(b.getChanges(), ())
self.failUnlessEqual(b.getResponsibleUsers(), [])
self.failUnless(b.isFinished())
self.failUnlessEqual(b.getText(), ['build', 'successful'])
More information about the Commits
mailing list