incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1445501 - /incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/tests/ticket/model.py
Date Wed, 13 Feb 2013 08:40:08 GMT
Author: jure
Date: Wed Feb 13 08:40:07 2013
New Revision: 1445501

URL: http://svn.apache.org/r1445501
Log:
#355, ticket comment tests in product environments, t355_r1444754_trac_test_ticket_comments.patch
applied (from Olemis)


Modified:
    incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/tests/ticket/model.py

Modified: incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/tests/ticket/model.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/tests/ticket/model.py?rev=1445501&r1=1445500&r2=1445501&view=diff
==============================================================================
--- incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/tests/ticket/model.py
(original)
+++ incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/tests/ticket/model.py
Wed Feb 13 08:40:07 2013
@@ -47,6 +47,37 @@ class ProductTicketTestCase(TicketTestCa
         self.global_env.reset_db()
         self.env = self.global_env = None
 
+class ProductTicketCommentTestCase(MultiproductTestCase):
+
+    @property
+    def env(self):
+        env = getattr(self, '_env', None)
+        if env is None:
+            self.global_env = self._setup_test_env()
+            self._upgrade_mp(self.global_env)
+            self._setup_test_log(self.global_env)
+            self._load_product_from_data(self.global_env, self.default_product)
+            self._env = env = ProductEnvironment(
+                    self.global_env, self.default_product)
+            self._load_default_data(env)
+        return env
+
+    @env.setter
+    def env(self, value):
+        pass
+
+    def tearDown(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,8 +147,8 @@ class ProductVersionTestCase(VersionTest
 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(ProductEnumTestCase, 'test'))
     suite.addTest(unittest.makeSuite(ProductMilestoneTestCase, 'test'))
     suite.addTest(unittest.makeSuite(ProductComponentTestCase, 'test'))



Mime
View raw message