~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/codehosting/scanner/tests/test_bzrsync.py

  • Committer: Jelmer Vernooij
  • Date: 2011-08-18 15:33:25 UTC
  • mto: This revision was merged to the branch mainline in revision 13726.
  • Revision ID: jelmer@canonical.com-20110818153325-8h2doe1myo8ew15q
Fix hook running.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
    read_locked,
45
45
    write_locked,
46
46
    )
 
47
from lp.codehosting.safe_open import (
 
48
    SafeBranchOpener,
 
49
    )
47
50
from lp.codehosting.scanner.bzrsync import BzrSync
48
51
from lp.services.osutils import override_environ
49
52
from lp.testing import (
84
87
 
85
88
    def setUp(self):
86
89
        super(BzrSyncTestCase, self).setUp()
 
90
        SafeBranchOpener.install_hook()
87
91
        self.disable_directory_isolation()
88
92
        self.useBzrBranches(direct_database=True)
89
93
        self.lp_db_user = config.launchpad.dbuser