Esempio n. 1
0
 def test_detach_issue(self):
     testcaserun.detach_issue(self.admin_request, self.case_run.pk, self.bz_bug)
     self.assertFalse(
         self.case_run.case.issues.filter(issue_key=self.bz_bug).exists())
Esempio n. 2
0
 def test_detach_issue_with_non_exist_bug(self):
     original_links_count = self.case_run.case.issues.count()
     nonexisting_bug = '{0}111'.format(self.bz_bug)
     testcaserun.detach_issue(self.admin_request, self.case_run.pk, nonexisting_bug)
     self.assertEqual(original_links_count, self.case_run.case.issues.count())
Esempio n. 3
0
 def test_detach_issue_with_non_exist_id(self):
     original_links_count = self.case_run.case.issues.count()
     testcaserun.detach_issue(self.admin_request, 9999999, '123456')
     self.assertEqual(original_links_count, self.case_run.case.issues.count())
Esempio n. 4
0
 def test_detach_issue(self):
     testcaserun.detach_issue(self.admin_request, self.case_run.pk, self.bz_bug)
     self.assertFalse(
         self.case_run.case.issues.filter(issue_key=self.bz_bug).exists())
Esempio n. 5
0
 def test_detach_issue_with_non_exist_bug(self):
     original_links_count = self.case_run.case.issues.count()
     nonexisting_bug = f'{self.bz_bug}111'
     testcaserun.detach_issue(self.admin_request, self.case_run.pk, nonexisting_bug)
     self.assertEqual(original_links_count, self.case_run.case.issues.count())
Esempio n. 6
0
 def test_detach_issue_with_non_exist_id(self):
     original_links_count = self.case_run.case.issues.count()
     testcaserun.detach_issue(self.admin_request, 9999999, '123456')
     self.assertEqual(original_links_count, self.case_run.case.issues.count())