Commits

Olemis Lang  committed 9706a47

BH Multiproduct #387 : TC for tracticket8247 running in default product. Enable DeleteTicket by writing config file

  • Participants
  • Parent commits d2004b4
  • Branches t387_test_functional

Comments (0)

Files changed (1)

File t387/t387_r1495238_functional_test.2.diff

 # HG changeset patch
-# Parent 4b5b3821c163b04fbdc80a404e47ff63dc18ec99
+# Parent d404667f80fa2eb56f5bc4db0889b208d9e095bb
 BH Multiproduct #387 : Bloodhound functional test cases (cont.)
 
-diff -r 4b5b3821c163 bloodhound_multiproduct/tests/functional/__init__.py
---- a/bloodhound_multiproduct/tests/functional/__init__.py	Thu Jun 27 20:57:22 2013 -0500
-+++ b/bloodhound_multiproduct/tests/functional/__init__.py	Sat Jun 29 02:24:34 2013 -0500
+diff -r d404667f80fa bloodhound_multiproduct/tests/functional/__init__.py
+--- a/bloodhound_multiproduct/tests/functional/__init__.py	Mon Jul 01 23:35:39 2013 -0500
++++ b/bloodhound_multiproduct/tests/functional/__init__.py	Tue Jul 02 02:25:52 2013 -0500
 @@ -333,7 +333,12 @@
  
      - Preferences link removed in Bloodhound UI
      # The db tests should be last since the backup test occurs there.
      import trac.db.tests
      trac.db.tests.functionalSuite(suite)
-diff -r 4b5b3821c163 bloodhound_multiproduct/tests/functional/ticket.py
---- a/bloodhound_multiproduct/tests/functional/ticket.py	Thu Jun 27 20:57:22 2013 -0500
-+++ b/bloodhound_multiproduct/tests/functional/ticket.py	Sat Jun 29 02:24:34 2013 -0500
+diff -r d404667f80fa bloodhound_multiproduct/tests/functional/ticket.py
+--- a/bloodhound_multiproduct/tests/functional/ticket.py	Mon Jul 01 23:35:39 2013 -0500
++++ b/bloodhound_multiproduct/tests/functional/ticket.py	Tue Jul 02 02:25:52 2013 -0500
 @@ -24,6 +24,8 @@
  
  from trac.ticket.tests.functional import *
  #----------------
  # Functional test cases for tickets (rewritten) 
  #----------------
-@@ -301,6 +303,213 @@
+@@ -301,6 +303,214 @@
          self._tester.find_ticket_field('newfield', querylinks) 
  
  
 +        env = self._testenv.get_trac_environment()
 +
 +        # [BLOODHOUND] Ensure plugin will be enabled in target scope
-+        self._testenv._tracadmin('config', 'set', 
-+                                 'components', 'DeleteTicket.*', 'enabled')
++        env.config.set('components', 'DeleteTicket.*', 'enabled')
 +
 +        prevconfig = env.config.get('ticket', 'workflow')
 +        env.config.set('ticket', 'workflow',
 +
 +
 +class RegressionTestTicket8247(FunctionalTwillTestCaseSetup):
++    BH_IN_DEFAULT_PRODUCT = True
++
 +    def runTest(self):
 +        """Test for regression of http://trac.edgewall.org/ticket/8247
 +        Author field of ticket comment corresponding to the milestone removal