l.b.s.t.t.TestExternalBugTracker(ExternalBugTracker) : class documentation

Part of lp.bugs.scripts.tests.test_bugimport View In Hierarchy

A mock ExternalBugTracker object.

This external bug tracker is used for testing ExternalBugTracker.updateWatches. It overrides several methods in order to simulate the syncing of two bug watches, one of which is guaranteed to trigger a database error.

Method getRemoteBug Return the bug_id and an empty dictionary for data.
Method getRemoteStatus Returns a remote status as a string.
Method convertRemoteStatus Returns a hard-coded malone status - FIXRELEASED.
Method getRemoteImportance See ExternalBugTracker.
Method convertRemoteImportance See ExternalBugTracker.
def getRemoteBug(self, bug_id):
Return the bug_id and an empty dictionary for data.

The result will be ignored, since we force a specific status in getRemoteStatus and convertRemoteStatus.

def getRemoteStatus(self, bug_id):
Returns a remote status as a string.

The result will be ignored, since we force a specific malone status in convertRemoteStatus.

def convertRemoteStatus(self, remote_status):
Returns a hard-coded malone status - FIXRELEASED.

We rely on the result for comparison in test_checkbugwatches_error_recovery.

def getRemoteImportance(self, bug_id):
See ExternalBugTracker.

This method is implemented here as a stub to ensure that existing functionality is preserved. As a result, UNKNOWN_REMOTE_IMPORTANCE will always be returned.

def convertRemoteImportance(self, remote_importance):
See ExternalBugTracker.

This method is implemented here as a stub to ensure that existing functionality is preserved. As a result, BugTaskImportance.UNKNOWN will always be returned.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.