~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/browser/tests/test_bugtask.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-09-23 13:25:35 UTC
  • mfrom: (14012.1.13 valid-targets-0)
  • Revision ID: launchpad@pqm.canonical.com-20110923132535-5rq8hxf1qtfgr7w2
[r=jcsackett][bug=828838] Restrict the target widget to pillars that
 use Launchpad.

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
        self.getUserBrowser(url, person_no_teams)
97
97
        # This may seem large: it is; there is easily another 30% fat in
98
98
        # there.
99
 
        self.assertThat(recorder, HasQueryCount(LessThan(74)))
 
99
        self.assertThat(recorder, HasQueryCount(LessThan(76)))
100
100
        count_with_no_teams = recorder.count
101
101
        # count with many teams
102
102
        self.invalidate_caches(task)
112
112
    def test_rendered_query_counts_constant_with_attachments(self):
113
113
        with celebrity_logged_in('admin'):
114
114
            browses_under_limit = BrowsesWithQueryLimit(
115
 
                79, self.factory.makePerson())
 
115
                82, self.factory.makePerson())
116
116
 
117
117
            # First test with a single attachment.
118
118
            task = self.factory.makeBugTask()