def test_no_data(self): new_project = self.group.projects.create(slug='new') comp = MetricComparison.compare_projects(new_project) self.assertFalse(comp.diff) self.assertEqual([], comp.builds)
def test_empty_with_no_builds(self): new_project = self.group.projects.create(slug='new') comparison = MetricComparison.compare_projects(new_project) self.assertFalse(comparison.diff)
def test_compare_projects(self): comp = MetricComparison.compare_projects(self.project1, self.project2) self.assertEqual([self.build1, self.build3], comp.builds)