Commits

Olemis Lang committed 38c1f99

BH Multiproduct #355 : Rewrite test cases on deleting ticket comments

  • Participants
  • Parent commits 4be26f6
  • Branches t355_trac_test_suite

Comments (0)

Files changed (1)

File t355/t355_r1444754_trac_test_ticket_comments.diff

 
 diff -r 8469e855776f bloodhound_multiproduct/tests/ticket/model.py
 --- a/bloodhound_multiproduct/tests/ticket/model.py	Mon Feb 11 13:05:18 2013 +0000
-+++ b/bloodhound_multiproduct/tests/ticket/model.py	Tue Feb 12 22:32:04 2013 -0500
-@@ -47,6 +47,30 @@
++++ b/bloodhound_multiproduct/tests/ticket/model.py	Tue Feb 12 22:57:35 2013 -0500
+@@ -47,6 +47,37 @@
          self.global_env.reset_db()
          self.env = self.global_env = None
  
-+class ProductTicketCommentEditTestCase(TicketCommentEditTestCase,
-+        MultiproductTestCase):
++class ProductTicketCommentTestCase(MultiproductTestCase):
 +
 +    @property
 +    def env(self):
 +        self.global_env.reset_db()
 +        self._env = self.global_env = None
 +
++class ProductTicketCommentEditTestCase(TicketCommentEditTestCase,
++        ProductTicketCommentTestCase):
++    pass
++
++class ProductTicketCommentDeleteTestCase(TicketCommentDeleteTestCase,
++        ProductTicketCommentTestCase):
++    pass
++
  class ProductEnumTestCase(EnumTestCase, MultiproductTestCase):
      def setUp(self):
          self._mp_setup()
-@@ -116,7 +140,7 @@
+@@ -116,8 +147,8 @@
  def test_suite():
      suite = unittest.TestSuite()
      suite.addTest(unittest.makeSuite(ProductTicketTestCase, 'test'))
 -#    suite.addTest(unittest.makeSuite(ProductTicketCommentEditTestCase, 'test'))
+-#    suite.addTest(unittest.makeSuite(ProductTicketCommentDeleteTestCase, 'test'))
 +    suite.addTest(unittest.makeSuite(ProductTicketCommentEditTestCase, 'test'))
- #    suite.addTest(unittest.makeSuite(ProductTicketCommentDeleteTestCase, 'test'))
++    suite.addTest(unittest.makeSuite(ProductTicketCommentDeleteTestCase, 'test'))
      suite.addTest(unittest.makeSuite(ProductEnumTestCase, 'test'))
      suite.addTest(unittest.makeSuite(ProductMilestoneTestCase, 'test'))
+     suite.addTest(unittest.makeSuite(ProductComponentTestCase, 'test'))