~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/scripts/tests/test_revisionkarma.py

  • Committer: Stuart Bishop
  • Date: 2012-01-05 07:57:21 UTC
  • mfrom: (14635 devel)
  • mto: This revision was merged to the branch mainline in revision 14636.
  • Revision ID: stuart.bishop@canonical.com-20120105075721-ol7khggaclh7dgqj
Merged rocketfuel into db-deploy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2009-2012 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
4
"""Tests for the cron script that updates revision karma."""
104
104
 
105
105
        # Now link the revision author to the author.
106
106
        author.validateAndEnsurePreferredEmail(
107
 
            EmailAddressSet().new(email, author, account=author.account))
 
107
            EmailAddressSet().new(email, author))
108
108
        transaction.commit()
109
109
        # Run the RevisionAuthorEmailLinker garbo job.
110
110
        RevisionAuthorEmailLinker(log=DevNullLogger()).run()