l.b.t.e.TestBugzilla(BugTrackerResponsesMixin, Bugzilla) : class documentation

Part of lp.bugs.tests.externalbugtracker View In Hierarchy

Known subclasses: lp.bugs.tests.externalbugtracker.TestBrokenBugzilla, lp.bugs.tests.externalbugtracker.TestIssuezilla, lp.bugs.tests.externalbugtracker.TestOldBugzilla, lp.bugs.tests.externalbugtracker.TestWeirdBugzilla

Bugzilla ExternalSystem for use in tests.
Method __init__ Undocumented
Method getExternalBugTrackerToUse Undocumented
Method addResponses Add test responses.
Method _getBugsToTest Return a dict with bugs in the form
Method _readBugItemFile Reads in the file for an individual bug item.
Method _getCallback Handle a test GET request.
Method _postCallback Handle a test POST request.

Inherited from BugTrackerResponsesMixin:

Method responses Undocumented
def __init__(self, baseurl='http://bugzilla.example.com/', version=None):
Undocumented
def getExternalBugTrackerToUse(self):
Undocumented
def _getBugsToTest(self):
Return a dict with bugs in the form bug_id: (status, resolution, priority, severity)
def _readBugItemFile(self):
Reads in the file for an individual bug item.

This method exists really only to allow us to check that the file is being used. So what?

def _getCallback(self, request):
Handle a test GET request.

Only handles xml.cgi?id=1 so far.

def _postCallback(self, request):
Handle a test POST request.

Only handles buglist.cgi so far.

def addResponses(self, requests_mock, get=True, post=True):
Add test responses.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.