~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/testing/factory.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-10-12 19:41:29 UTC
  • mfrom: (14022.6.14 stacked-code-imports)
  • Revision ID: launchpad@pqm.canonical.com-20111012194129-t1s2ohii48hu6flg
[r=benji][bug=485932] Stack code imports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
472
472
        return epoch + timedelta(minutes=self.getUniqueInteger())
473
473
 
474
474
    def makeCodeImportSourceDetails(self, branch_id=None, rcstype=None,
475
 
                                    url=None, cvs_root=None, cvs_module=None):
 
475
                                    url=None, cvs_root=None, cvs_module=None,
 
476
                                    stacked_on_url=None):
476
477
        if branch_id is None:
477
478
            branch_id = self.getUniqueInteger()
478
479
        if rcstype is None:
494
495
        else:
495
496
            raise AssertionError("Unknown rcstype %r." % rcstype)
496
497
        return CodeImportSourceDetails(
497
 
            branch_id, rcstype, url, cvs_root, cvs_module)
 
498
            branch_id, rcstype, url, cvs_root, cvs_module,
 
499
            stacked_on_url=stacked_on_url)
498
500
 
499
501
 
500
502
class BareLaunchpadObjectFactory(ObjectFactory):