l.s.f.t.FeatureFixture(FeatureFixtureMixin, Fixture) : class documentation

Part of lp.services.features.testing View In Hierarchy

A fixture that sets a feature in a database-backed feature controller.

The fixture takes a dictionary as its constructor argument. The keys of
the dictionary are features to be set. All existing flags will be cleared.

Call the fixture's `setUp()' method to install the features with the
desired values.  Calling `cleanUp()' will restore the original values.
You can also install this fixture by inheriting from
`fixtures.TestWithFixtures' and then calling the TestCase's
`self.useFixture()' method.

The fixture can also be used as a context manager. The value of the
feature within the context block is set to the dictionary's key's value.
The values are restored when the block exits.
Method makeRuleSource Undocumented

Inherited from FeatureFixtureMixin:

Method __init__ Constructor.
Method makeNewRules Make a set of new feature flag rules.
Method _setUp Set the feature flags that this fixture is responsible for.
def makeRuleSource(self, rules):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.