[Buildbot-commits] buildbot/buildbot/test test_web.py,1.9,1.10

Brian Warner warner at users.sourceforge.net
Tue Apr 26 06:32:11 UTC 2005


Update of /cvsroot/buildbot/buildbot/buildbot/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4477/buildbot/test

Modified Files:
	test_web.py 
Log Message:
* buildbot/status/html.py (StatusResourceChanges.body): oops, don't
reference no-longer-existent changemaster.sources
* buildbot/test/test_web.py (WebTest.test_waterfall): test for it

* buildbot/__init__.py (version): bump to 0.6.3+ while between
releases


Index: test_web.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_web.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- test_web.py	24 Apr 2005 21:30:25 -0000	1.9
+++ test_web.py	26 Apr 2005 06:32:08 -0000	1.10
@@ -161,15 +161,17 @@
         # this is the right way to configure the Waterfall status
         config1 = """
 from buildbot.status import html
+from buildbot.changes import mail
 BuildmasterConfig = {
     'bots': [],
-    'sources': [],
+    'sources': [mail.SyncmailMaildirSource('my-maildir')],
     'builders': [],
     'slavePortnum': 0,
     'status': [html.Waterfall(http_port=0)],
     }
 """
         os.mkdir("test_web4")
+        os.mkdir("my-maildir"); os.mkdir("my-maildir/new")
         m = ConfiguredMaster("test_web4", config1)
         m.startService()
         # hack to find out what randomly-assigned port it is listening on
@@ -186,4 +188,9 @@
         expected = open(html.buildbot_icon,"rb").read()
         self.failUnless(icon == expected)
 
+        d = client.getPage("http://localhost:%d/changes" % port)
+        changes = dr(d)
+        self.failUnless("<li>Syncmail mailing list in maildir my-maildir</li>"
+                        in changes)
+
         dr(m.stopService())





More information about the Commits mailing list