def setUp(self): self.__birt = FakeBirt() self.__subject = FakeSubject() self.__project = domain.Project( metric_sources={metric_source.Birt: self.__birt}) self.__metric = metric.LogicalTestCasesNotAutomated( subject=self.__subject, project=self.__project)
def test_value_on_error(self): """ Test that the value is -1 when the metric source is not available. """ self.__metric = metric.LogicalTestCasesNotAutomated(subject=self.__subject, project=domain.Project()) self.assertEqual(-1, self.__metric.value())
def setUp(self): self.__birt = MagicMock() self.__subject = MagicMock() self.__project = domain.Project(metric_sources={metric_source.Backlog: self.__birt}) self.__metric = metric.LogicalTestCasesNotAutomated(subject=self.__subject, project=self.__project)