示例#1
0
 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)
示例#2
0
 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)
示例#3
0
 def test_compare_projects(self):
     comp = MetricComparison.compare_projects(self.project1, self.project2)
     self.assertEqual([self.build1, self.build3], comp.builds)