def test_fix_projectless_bugs(self): self.s.update_bugs(self.p.get_backlog()) eq_(self.s.bugs.filter(project__isnull=True).count(), 9) scrum_cron.fix_projectless_bugs() proj_bugs = set() for proj in self.p.team.projects.all(): proj_bugs |= set(proj.bugs.all()) self.assertSetEqual(set(self.s.bugs.all()), proj_bugs)
def test_fix_projectless_bugs(self): self.s.update_bugs(self.p.get_backlog()) eq_(self.s.bugs.filter(project__isnull=True).count(), 9) scrum_cron.fix_projectless_bugs() self.assertSetEqual(set(self.s.bugs.all()), set(self.p.bugs.all()))