From f200c2bcf7eaef2dcad37737ebe9fb5e629c938e Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Sun, 8 Mar 2009 15:37:33 +1100 Subject: Factor out all the individual components of generate_tests. --- README | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'README') diff --git a/README b/README index d13172a..f18a027 100644 --- a/README +++ b/README @@ -189,3 +189,15 @@ For instance:: >>> class TestHashPerformance(TestCase): >>> >>> scenarios = hash_scenarios + + +Forcing Scenarios ++++++++++++++++++ + +The ``apply_scenarios`` function can be useful to apply scenarios to a test +that has none applied. ``apply_scenarios`` is the workhorse for +``generate_scenarios``, except it takes the scenarios passed in rather than +introspecting the test object to determine the scenarios. The +``apply_scenarios`` function does not reset the test scenarios attribute, +allowing it to be used to layer scenarios without affecting existing scenario +selection. -- cgit v1.2.1