Esempio n. 1
0
 def test_to_many_tickets(self):
     hoursRemaining = HoursRemaining(self.env)
     for _ in range(200):
         self._insert_ticket('1')
     result = hoursRemaining.render_macro(self.req, "",
                                          "milestone=milestone1")
     self.assertEqual(result, '200')
Esempio n. 2
0
 def test_real(self):
     hoursRemaining = HoursRemaining(self.env)
     self._insert_ticket('10')
     self._insert_ticket('20.1')
     self._insert_ticket('30')
     result = hoursRemaining.render_macro(self.req, "", "milestone=milestone1")
     self.assertEqual(result, '60')
Esempio n. 3
0
 def test_real(self):
     hoursRemaining = HoursRemaining(self.env)
     self._insert_ticket('10')
     self._insert_ticket('20.1')
     self._insert_ticket('30')
     result = hoursRemaining.render_macro(self.req, "",
                                          "milestone=milestone1")
     self.assertEqual(result, '60')
Esempio n. 4
0
 def test_closed_tickets(self):
     hoursRemaining = HoursRemaining(self.env)
     self._insert_ticket('10')
     self._insert_ticket('20.1')
     self._insert_ticket('30')
     self._insert_ticket('30', status='closed')
     result = hoursRemaining.render_macro(self.req, "", "status!=closed, milestone=milestone1")
     self.assertEqual(result, '60')
Esempio n. 5
0
 def test_closed_tickets(self):
     hoursRemaining = HoursRemaining(self.env)
     self._insert_ticket('10')
     self._insert_ticket('20.1')
     self._insert_ticket('30')
     self._insert_ticket('30', status='closed')
     result = hoursRemaining.render_macro(
         self.req, "", "status!=closed, milestone=milestone1")
     self.assertEqual(result, '60')
Esempio n. 6
0
 def test_to_many_tickets(self):
     hoursRemaining = HoursRemaining(self.env)
     for _ in range(200):
         self._insert_ticket('1')
     result = hoursRemaining.render_macro(self.req, "", "milestone=milestone1")
     self.assertEqual(result, '200')