Exemplo n.º 1
0
 def test_launchpad_attributes(self):
     bugs_list = filter_bugs(self.correct_commits[0])
     self.bugs = prepare_mock(bugs_list)
     for bug_instance in launchpad_lookup(self.launchpad, self.bugs.keys()):
         self.assertTrue(isinstance(bug_instance.title, str))
         self.assertTrue(isinstance(bug_instance.bug_tasks[0].date_fix_committed, str))
         self.assertTrue(isinstance(bug_instance.bug_tasks[0].assignee.name, str))
         self.assertTrue(isinstance(bug_instance.bug_tasks[0].web_link, str))
Exemplo n.º 2
0
 def test_launchpad_attributes(self):
     bugs_list = filter_bugs(self.correct_commits[0])
     self.bugs = prepare_mock(bugs_list)
     for bug_instance in launchpad_lookup(self.launchpad, self.bugs.keys()):
         self.assertTrue(isinstance(bug_instance.title, str))
         self.assertTrue(
             isinstance(bug_instance.bug_tasks[0].date_fix_committed, str))
         self.assertTrue(
             isinstance(bug_instance.bug_tasks[0].assignee.name, str))
         self.assertTrue(isinstance(bug_instance.bug_tasks[0].web_link,
                                    str))
Exemplo n.º 3
0
 def test_commits_output_bugs(self):
     for commit in self.correct_commits:
         # preparing bugs for mocker
         self.bugs = prepare_mock(commit)
         for bug in launchpad_lookup(self.launchpad, self.bugs):
             self.assertTrue(isinstance(bug, mock.Mock))
Exemplo n.º 4
0
 def test_launchpad_instances(self):
     bugs_list = filter_bugs(self.multiple_bugs_commit[0])
     self.bugs = prepare_mock(bugs_list)
     self.assertEquals(len(launchpad_lookup(self.launchpad,
             self.bugs.keys())), 3)
Exemplo n.º 5
0
 def test_commits_output_bugs(self):
     for commit in self.correct_commits:
         # preparing bugs for mocker
         self.bugs = prepare_mock(commit)
         for bug in launchpad_lookup(self.launchpad, self.bugs):
             self.assertTrue(isinstance(bug, mock.Mock))
Exemplo n.º 6
0
 def test_launchpad_instances(self):
     bugs_list = filter_bugs(self.multiple_bugs_commit[0])
     self.bugs = prepare_mock(bugs_list)
     self.assertEquals(
         len(launchpad_lookup(self.launchpad, self.bugs.keys())), 3)