~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/tests/test_duplicate_handling.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-09-22 21:02:33 UTC
  • mfrom: (14006.2.5 trivial)
  • Revision ID: launchpad@pqm.canonical.com-20110922210233-j0gidd1az9bh992o
[r=allenap,
        rvb][bug=856048][no-qa] Merge SQLLogger and StormStatementRecorder.

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
        target_heat_cache_statements = [
139
139
            statement for statement in recorder.statements
140
140
            if statement.startswith(
141
 
                "'SELECT MAX(Bug.heat), SUM(Bug.heat), COUNT(Bug.id)")]
 
141
                "SELECT MAX(Bug.heat), SUM(Bug.heat), COUNT(Bug.id)")]
142
142
        return len(target_heat_cache_statements)
143
143
 
144
144
    def test_move_duplicates_efficient_target_heat_cache_calculation(self):