~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/doc/bugtracker-person.txt

Merged fix-retest-colorize into redo-read-only-transactions-in-buildmaster, resolving several import conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
We'll rename the bugtracker to make the tests more readable.
20
20
 
21
 
    >>> from canonical.database.sqlbase import commit
22
 
    >>> from canonical.testing.layers import LaunchpadZopelessLayer
 
21
    >>> from lp.services.database.sqlbase import commit
 
22
    >>> from lp.testing.layers import LaunchpadZopelessLayer
23
23
    >>> LaunchpadZopelessLayer.switchDbUser('launchpad')
24
24
 
25
25
    >>> bugtracker.name = 'bugzilla-checkwatches'
26
26
    >>> commit()
27
27
 
28
 
    >>> from canonical.config import config
 
28
    >>> from lp.services.config import config
29
29
    >>> LaunchpadZopelessLayer.switchDbUser(config.checkwatches.dbuser)
30
30
 
31
31
    >>> bugtracker_person = bugtracker.linkPersonToSelf(