~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/doc/bug-heat.txt

  • Committer: Francis J. Lacoste
  • Date: 2011-04-27 21:40:03 UTC
  • mto: This revision was merged to the branch mainline in revision 12971.
  • Revision ID: francis.lacoste@canonical.com-20110427214003-iiqhcyyswppyqjsx
Change the default timeout to production value, improved options documentation and use only one bin above timeout value.

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
 
177
177
    >>> from datetime import datetime, timedelta
178
178
    >>> from pytz import timezone
179
 
    >>> from lp.services.utils import utc_now
180
179
 
181
180
    >>> from lp.bugs.adapters.bugchange import BugDescriptionChange
182
181
    >>> change = BugDescriptionChange(
183
 
    ...     when=utc_now(),
 
182
    ...     when=datetime.now().replace(tzinfo=timezone('UTC')),
184
183
    ...     person=bug.owner, what_changed='description',
185
184
    ...     old_value=bug.description, new_value='Some text')
186
185
    >>> bug.addChange(change)