~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/scripts/tests/test_garbo.py

Merged bug-824435-failure-reporting-2 into bug-824435-failure-reporting-3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
848
848
        db_branch.branch_format = BranchFormat.BZR_BRANCH_5
849
849
        db_branch.repository_format = RepositoryFormat.BZR_KNIT_1
850
850
        Store.of(db_branch).flush()
851
 
        branch_job = BranchUpgradeJob.create(db_branch)
 
851
        branch_job = BranchUpgradeJob.create(
 
852
            db_branch, self.factory.makePerson())
852
853
        branch_job.job.date_finished = THIRTY_DAYS_AGO
853
854
 
854
855
        self.assertEqual(
876
877
            branch_format=BranchFormat.BZR_BRANCH_5,
877
878
            repository_format=RepositoryFormat.BZR_KNIT_1)
878
879
 
879
 
        branch_job = BranchUpgradeJob.create(db_branch)
 
880
        branch_job = BranchUpgradeJob.create(
 
881
            db_branch, self.factory.makePerson())
880
882
        branch_job.job.date_finished = THIRTY_DAYS_AGO
881
883
 
882
884
        db_branch2 = self.factory.makeAnyBranch(
883
885
            branch_format=BranchFormat.BZR_BRANCH_5,
884
886
            repository_format=RepositoryFormat.BZR_KNIT_1)
885
 
        BranchUpgradeJob.create(db_branch2)
 
887
        BranchUpgradeJob.create(db_branch2, self.factory.makePerson())
886
888
 
887
889
        self.runDaily()
888
890