b.t.scenarios : module documentation

Part of bzrlib.tests

Generate multiple variations in different scenarios.

For a class whose tests should be repeated in varying scenarios, set a scenarios member to a list of scenarios where it should be repeated.

This is similar to the interface provided by <http://launchpad.net/testscenarios/>.

Function load_tests_apply_scenarios Multiply tests depending on their 'scenarios' attribute.
Function multiply_tests_by_their_scenarios Multiply the tests in the given suite by their declared scenarios.
def load_tests_apply_scenarios(standard_tests, module, loader):
Multiply tests depending on their 'scenarios' attribute.

This can be assigned to 'load_tests' in any test module to make this automatically work across tests in the module.

def multiply_tests_by_their_scenarios(some_tests, into_suite):
Multiply the tests in the given suite by their declared scenarios.

Each test must have a 'scenarios' attribute which is a list of (name, params) pairs.

Parameterssome_testsTestSuite or Test.
into_suiteA TestSuite into which the resulting tests will be inserted.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.