l.s.f.testing : module documentation

Part of lp.services.features

Helpers for writing tests that use feature flags.
Function dbadmin Decorate a function to automatically reattempt with admin db perms.
Class FeatureFixtureMixin No class docstring; 3/3 methods documented
Class FeatureFixture A fixture that sets a feature in a database-backed feature controller.
Class MemoryFeatureFixture A fixture that sets a feature in an in-memory feature controller.
def dbadmin(func):
Decorate a function to automatically reattempt with admin db perms.

We don't just automatically switch to the admin user as this implicitly commits the transaction, and we want to avoid unnecessary commits to avoid breaking database setup optimizations.

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