Commit e20ed41a authored by Jérome Perrin's avatar Jérome Perrin

crm: re-enable testCrmReports as expectedFailure

Now that we properly detect 0 tests as errors/UNKNOWN, this test was reported
as UNKNOWN state. Run the tests, but as expectedFailure since they have not
been updated since b4b5bcf8.
parent 072b7287
...@@ -282,6 +282,7 @@ class TestCrmReports(CrmTestCase): ...@@ -282,6 +282,7 @@ class TestCrmReports(CrmTestCase):
def getTitle(self): def getTitle(self):
return "Crm Reports" return "Crm Reports"
@unittest.expectedFailure
def testCampaignStatus(self): def testCampaignStatus(self):
# Campaign Status report. # Campaign Status report.
...@@ -428,6 +429,7 @@ class TestCrmReports(CrmTestCase): ...@@ -428,6 +429,7 @@ class TestCrmReports(CrmTestCase):
progression = 100.00/100, progression = 100.00/100,
efficiency = 50.00/100) efficiency = 50.00/100)
@unittest.expectedFailure
def testCampaignDetailedReport(self): def testCampaignDetailedReport(self):
# Campaign Detailed report. # Campaign Detailed report.
...@@ -591,6 +593,7 @@ class TestCrmReports(CrmTestCase): ...@@ -591,6 +593,7 @@ class TestCrmReports(CrmTestCase):
source = event.getSourceTitle(), source = event.getSourceTitle(),
validation_state = event.getTranslatedSimulationStateTitle()) validation_state = event.getTranslatedSimulationStateTitle())
@unittest.expectedFailure
def testMeetingStatus(self): def testMeetingStatus(self):
# Meeting Status report. # Meeting Status report.
...@@ -736,6 +739,7 @@ class TestCrmReports(CrmTestCase): ...@@ -736,6 +739,7 @@ class TestCrmReports(CrmTestCase):
outgoing = 2, outgoing = 2,
incoming = 1) incoming = 1)
@unittest.expectedFailure
def testMeetingDetailedReport(self): def testMeetingDetailedReport(self):
# Meeting Detailed report. # Meeting Detailed report.
...@@ -899,6 +903,7 @@ class TestCrmReports(CrmTestCase): ...@@ -899,6 +903,7 @@ class TestCrmReports(CrmTestCase):
source = event.getSourceTitle(), source = event.getSourceTitle(),
validation_state = event.getTranslatedSimulationStateTitle()) validation_state = event.getTranslatedSimulationStateTitle())
@unittest.expectedFailure
def testSupportRequestStatus(self): def testSupportRequestStatus(self):
# Support Request Status report. # Support Request Status report.
...@@ -1044,6 +1049,7 @@ class TestCrmReports(CrmTestCase): ...@@ -1044,6 +1049,7 @@ class TestCrmReports(CrmTestCase):
outgoing = 1, outgoing = 1,
incoming = 2) incoming = 2)
@unittest.expectedFailure
def testSupportRequestDetailedReport(self): def testSupportRequestDetailedReport(self):
# Support Request Detailed report. # Support Request Detailed report.
...@@ -1207,6 +1213,7 @@ class TestCrmReports(CrmTestCase): ...@@ -1207,6 +1213,7 @@ class TestCrmReports(CrmTestCase):
source = event.getSourceTitle(), source = event.getSourceTitle(),
validation_state = event.getTranslatedSimulationStateTitle()) validation_state = event.getTranslatedSimulationStateTitle())
@unittest.expectedFailure
def testSaleOpportunityStatus(self): def testSaleOpportunityStatus(self):
# Sale Opportunity Status report. # Sale Opportunity Status report.
...@@ -1352,6 +1359,7 @@ class TestCrmReports(CrmTestCase): ...@@ -1352,6 +1359,7 @@ class TestCrmReports(CrmTestCase):
outgoing = 2, outgoing = 2,
incoming = 1) incoming = 1)
@unittest.expectedFailure
def testSaleOpportunityDetailedReport(self): def testSaleOpportunityDetailedReport(self):
# Sale Opportunity Detailed report. # Sale Opportunity Detailed report.
...@@ -1515,6 +1523,7 @@ class TestCrmReports(CrmTestCase): ...@@ -1515,6 +1523,7 @@ class TestCrmReports(CrmTestCase):
source = event.getSourceTitle(), source = event.getSourceTitle(),
validation_state = event.getTranslatedSimulationStateTitle()) validation_state = event.getTranslatedSimulationStateTitle())
@unittest.expectedFailure
def testEventActivity(self): def testEventActivity(self):
# Event Activity report. # Event Activity report.
...@@ -1857,6 +1866,7 @@ class TestCrmReports(CrmTestCase): ...@@ -1857,6 +1866,7 @@ class TestCrmReports(CrmTestCase):
self.assertEqual(1, stat_line.getColumnProperty('unassigned')) self.assertEqual(1, stat_line.getColumnProperty('unassigned'))
self.assertEqual(5, stat_line.getColumnProperty('total')) self.assertEqual(5, stat_line.getColumnProperty('total'))
@unittest.expectedFailure
def testEventDetailedReport(self): def testEventDetailedReport(self):
# Event Detailed Report report. # Event Detailed Report report.
...@@ -2176,10 +2186,3 @@ class TestCrmReports(CrmTestCase): ...@@ -2176,10 +2186,3 @@ class TestCrmReports(CrmTestCase):
self.assertEqual(1, stat_line.getColumnProperty('expired')) self.assertEqual(1, stat_line.getColumnProperty('expired'))
self.assertEqual(2, stat_line.getColumnProperty('responded')) self.assertEqual(2, stat_line.getColumnProperty('responded'))
self.assertEqual(17, stat_line.getColumnProperty('total')) self.assertEqual(17, stat_line.getColumnProperty('total'))
def test_suite():
suite = unittest.TestSuite()
# disable temporarily
# suite.addTest(unittest.makeSuite(TestCrmReports))
return suite
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment