def test_init_with_reqs(self): with patch("pyup.requirements.Requirement") as req: req.needs_update = True req_files = [RequirementFile("req.txt", "django")] update = Update(req_files, self.config) self.assertEqual(len(update.keys()), 1)
def test_init_with_reqs(self): with patch("pyup.requirements.Requirement") as req: req.needs_update = True req_files = [RequirementFile("req.txt", "django")] update = Update(req_files) self.assertEqual(len(update.keys()), 1)