Commits

Olemis Lang committed 38c1f99

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

Comments (0)

Files changed (1)

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'))
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.