Пример #1
0
 def setUp(self):
     self.testutils                = TestUtils()
     self.root                     = settings.PROJECT_DIR
     self.failed                   = Build.from_file(self.testutils.write_to_temp('FAILED_LOG.xml', BuildBreakerTests.FAILED_LOG_AT_OCT_11))
     self.did_not_fix         = Build.from_file(self.testutils.write_to_temp('PASSED_LOG_AT_OCT_11.xml', BuildBreakerTests.DID_NOT_FIX_IT_LOG))
     self.fixed_it = Build.from_file(self.testutils.write_to_temp('ANOTHER_PASSED_LOG_AT_OCT_11.xml', BuildBreakerTests.FIXED_IT_LOG))
     self.another_pass = Build.from_file(self.testutils.write_to_temp('FAILED_LOG_AT_OCT_11.xml', BuildBreakerTests.ANOTHER_PASS))        
Пример #2
0
 def setUp(self):
     self.testutils                = TestUtils()
     self.root                     = settings.PROJECT_DIR
     self.failed                   = Build.from_file(self.testutils.write_to_temp('FAILED_LOG.xml', BuildsTest.FAILED_LOG))
     self.passed_at_oct_11         = Build.from_file(self.testutils.write_to_temp('PASSED_LOG_AT_OCT_11.xml', BuildsTest.PASSED_LOG_AT_OCT_11))
     self.another_passed_at_oct_11 = Build.from_file(self.testutils.write_to_temp('ANOTHER_PASSED_LOG_AT_OCT_11.xml', BuildsTest.ANOTHER_PASSED_LOG_AT_OCT_11))
     self.failed_at_oct_11 = Build.from_file(self.testutils.write_to_temp('FAILED_LOG_AT_OCT_11.xml', BuildsTest.FAILED_LOG_AT_OCT_11))        
Пример #3
0
 def testToParseTheFailedLogForBuildDate(self):
     expecteddate = datetime(2009, 10, 11, 17, 39, 22);
     build = Build.from_file(self.ccroot + '/log20091011173922Lbuild.1.xml')
     self.assertEqual(expecteddate, build.start_time)
Пример #4
0
 def testToParseTheFailedLogForBuildDate(self):
     expecteddate = datetime(2009, 10, 11, 20, 11, 49);
     build = Build.from_file(self.ccroot + '/log20091013220324.xml')
     self.assertEqual(expecteddate, build.last_pass)
Пример #5
0
 def testToParseThePassPassedLogForResult(self):
     build = Build.from_file(self.ccroot + '/log20091011173922Lbuild.1.xml')
     self.assertEqual(True, build.is_passed)
Пример #6
0
 def testToParseThePassFailedLogForResult(self):
     build = Build.from_file(self.ccroot + '/log20091013220324.xml')
     self.assertEqual(False, build.is_passed)
Пример #7
0
 def testToParseTheFailedLogForBuildNumber(self):
     build = Build.from_file(self.ccroot + '/log20091013220324.xml')
     self.assertEqual("build.18", build.number)
Пример #8
0
 def testToParseThePassLogForBuildNumber(self):
     build = Build.from_file(self.ccroot + '/log20091011173922Lbuild.1.xml')
     self.assertEqual("build.1", build.number)
Пример #9
0
 def testToParseTheProjectName(self):
     build = Build.from_file(self.ccroot + '/log20091011173922Lbuild.1.xml')
     self.assertEqual("connectfour4", build.name)