Commits

Olemis Lang committed cbde01e

Bloodhound RPC: test_getAvailableActions_DeleteTicket (tracrpc.tests.ticket.RpcTicketTestCase) ... [ok]

  • Participants
  • Parent commits 1e5fff3

Comments (0)

Files changed (1)

trunk/tracrpc/tests/ticket.py

         tid = self.admin.ticket.create('abc', 'def', {})
         self.assertEquals(False,
                 'delete' in self.admin.ticket.getAvailableActions(tid))
-        env = rpc_testenv.get_trac_environment()
+        env = rpc_testenv.env
         delete_plugin = os.path.join(rpc_testenv.tracdir,
                                     'plugins', 'DeleteTicket.py')
         shutil.copy(os.path.join(
             rpc_testenv.trac_src, 'sample-plugins', 'workflow', 'DeleteTicket.py'),
                     delete_plugin)
+        env.config.set('components', 'DeleteTicket.*', 'enabled')
         env.config.set('ticket', 'workflow',
                 'ConfigurableTicketWorkflow,DeleteTicketActionController')
         env.config.save()
+        rpc_testenv.restart()
         self.assertEquals(True,
                 'delete' in self.admin.ticket.getAvailableActions(tid))
         self.assertEquals(False,