Esempio n. 1
0
 def test_failed_build(self):
     status = BuildStatus([("CONFIGURE", 0), ("BUILD", 4)])
     self.assertEquals(
         '<span class="status passed">ok</span>/<span class="status failed">4</span>',
         html_build_status(status))
Esempio n. 2
0
 def test_disk_full(self):
     status = BuildStatus([("CONFIGURE", 0), ("BUILD", 4)], set(["timeout"]))
     self.assertEquals(
         '<span class="status passed">ok</span>/<span class="status failed">4</span>'
         '(<span class="status failed">timeout</span>)', html_build_status(status))
Esempio n. 3
0
 def test_empty(self):
     status = BuildStatus()
     self.assertEquals("?", html_build_status(status))