~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/codehosting/tests/test_puller_scheduler.py

Reply to most of Andrew's review comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
from canonical.launchpad.interfaces import BranchType
11
11
from canonical.codehosting import branch_id_to_path
12
12
from canonical.codehosting.puller.branchtomirror import BranchToMirror
13
 
from canonical.codehosting.tests.helpers import create_branch
 
13
from canonical.codehosting.tests.helpers import (
 
14
    create_branch_with_one_revision)
14
15
from canonical.codehosting.puller import jobmanager
15
16
from canonical.authserver.client.branchstatus import BranchStatusClient
16
17
from canonical.authserver.tests.harness import AuthserverTacTestSetup
189
190
                                    branch
190
191
        """
191
192
        branch_dir = os.path.join(self.test_dir, relative_dir)
192
 
        create_branch(branch_dir)
 
193
        create_branch_with_one_revision(branch_dir)
193
194
        if target == None:
194
195
            target_dir = None
195
196
        else: