l.r.t.t.KarmaTestMixin : class documentation

Part of lp.registry.tests.test_person View In Hierarchy

Known subclasses: lp.bugs.tests.test_bug.TestBugPermissions, lp.registry.tests.test_person.TestPersonKarma, lp.registry.tests.test_personmerge.TestMergePeople

Helper methods for setting karma.
Method _makeKarmaCache Create a KarmaCache entry with the given arguments.
Method _makeKarmaTotalCache Create a KarmaTotalCache entry.
def _makeKarmaCache(self, person, product, category_name_values):
Create a KarmaCache entry with the given arguments.

In order to create the KarmaCache record we must switch to the DB user 'karma'. This invalidates the objects under test so they must be retrieved again.

def _makeKarmaTotalCache(self, person, total):
Create a KarmaTotalCache entry.

In order to create the KarmaTotalCache record we must switch to the DB user 'karma'. This invalidates the objects under test so they must be retrieved again.

API Documentation for Launchpad, generated by pydoctor at 2020-09-28 00:00:12.