~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/doc/bugtask-package-bugcounts.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-06-29 01:49:37 UTC
  • mfrom: (13316.3.4 syncUpdate-huh)
  • Revision ID: launchpad@pqm.canonical.com-20110629014937-h26dx50bi1s1jz6q
[r=jml][no-qa] Remove syncUpdate.

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
If we mark the bug as critical, the open_critical count will increase.
83
83
 
84
84
    >>> login('foo.bar@canonical.com')
85
 
    >>> from canonical.launchpad.ftests import syncUpdate
86
85
    >>> from lp.bugs.interfaces.bugtask import BugTaskImportance
87
86
    >>> [ubuntu_firefox_bugtask] = bug.bugtasks
88
87
    >>> ubuntu_firefox_bugtask.transitionToImportance(
89
88
    ...     BugTaskImportance.CRITICAL, getUtility(ILaunchBag).user)
90
 
    >>> syncUpdate(ubuntu_firefox_bugtask)
91
89
 
92
90
    >>> package_counts = getUtility(IBugTaskSet).getBugCountsForPackages(
93
91
    ...     user=None, packages=packages)
103
101
decrease.
104
102
 
105
103
    >>> ubuntu_firefox_bugtask.transitionToAssignee(foo_bar)
106
 
    >>> syncUpdate(ubuntu_firefox_bugtask)
107
104
 
108
105
    >>> package_counts = getUtility(IBugTaskSet).getBugCountsForPackages(
109
106
    ...     user=None, packages=packages)
120
117
    >>> from lp.bugs.interfaces.bugtask import BugTaskStatus
121
118
    >>> ubuntu_firefox_bugtask.transitionToStatus(
122
119
    ...     BugTaskStatus.INPROGRESS, getUtility(ILaunchBag).user)
123
 
    >>> syncUpdate(ubuntu_firefox_bugtask)
124
120
 
125
121
    >>> package_counts = getUtility(IBugTaskSet).getBugCountsForPackages(
126
122
    ...     user=None, packages=packages)
140
136
 
141
137
    >>> bug.setPrivate(True, getUtility(ILaunchBag).user)
142
138
    True
143
 
    >>> syncUpdate(bug)
144
139
 
145
140
    >>> no_priv = getUtility(IPersonSet).getByEmail('no-priv@canonical.com')
146
141
    >>> package_counts = getUtility(IBugTaskSet).getBugCountsForPackages(
171
166
 
172
167
    >>> from lp.bugs.interfaces.bug import IBugSet
173
168
    >>> bug.markAsDuplicate(getUtility(IBugSet).get(1))
174
 
    >>> syncUpdate(bug)
175
169
    >>> package_counts = getUtility(IBugTaskSet).getBugCountsForPackages(
176
170
    ...     user=foo_bar, packages=packages)
177
171
    >>> print_package_counts(package_counts[1])