Commits

Olemis Lang committed f663892

BH Multiproduct #355 : Fix infinite recursion error in ticket notification test cases ... (failures=3, errors=39)

  • Participants
  • Parent commits 737668c
  • Branches t355_trac_test_suite

Comments (0)

Files changed (2)

 #t355/t355_r1442601_trac_test_ticket_model.diff
 #t355/t355_r1442601_trac_test_ticket_enum.diff
 t355/t355_r1444754_trac_test_ticket_batch.diff
+t355/t355_r1444754_trac_test_ticket_notification.diff
 t355/t355_r1444754_trac_test_ticket_query.diff
 
 # Pending patches
-t355/t355_r1444754_trac_test_ticket_notification.diff

t355/t355_r1444754_trac_test_ticket_notification.diff

 # HG changeset patch
-# Parent b1dbe999787853edd7ec1085ec37e2c8031f36dc
+# Parent d4b1ee1ffe5c0b3d2eee8e3cd2a7bd5de8885530
 BH Multiproduct #355 : Rewrite Trac test cases for ticket notifications so as to run them against product environments
 
-diff -r b1dbe9997878 bloodhound_multiproduct/tests/ticket/notification.py
+diff -r d4b1ee1ffe5c bloodhound_multiproduct/tests/ticket/notification.py
 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
-+++ b/bloodhound_multiproduct/tests/ticket/notification.py	Wed Feb 13 02:42:19 2013 -0500
-@@ -0,0 +1,66 @@
++++ b/bloodhound_multiproduct/tests/ticket/notification.py	Wed Feb 13 17:20:04 2013 -0500
+@@ -0,0 +1,69 @@
 +
 +#  Licensed to the Apache Software Foundation (ASF) under one
 +#  or more contributor license agreements.  See the NOTICE file
 +    def env(self):
 +        env = getattr(self, '_env', None)
 +        if env is None:
-+            self.global_env = self._mp_setup()
++            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)
-+            env._load_default_data(self._env)
++            self._load_default_data(self._env)
 +        return env
 +
 +    @env.setter