summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorMartin Pool <mbp@sourcefrog.net>2010-10-12 15:05:41 +1100
committerMartin Pool <mbp@sourcefrog.net>2010-10-12 15:05:41 +1100
commit42e86e335d24e36be364ee7c003d47d0ccfa760b (patch)
tree70f08ce284d8b5f2750c00def2769572d006e27e /README
parent553e0a70a190ab8fa81348532fb32b118ea6592f (diff)
downloadtestscenarios-42e86e335d24e36be364ee7c003d47d0ccfa760b.tar.gz
Add load_tests_apply_scenarios
Diffstat (limited to 'README')
-rw-r--r--README13
1 files changed, 13 insertions, 0 deletions
diff --git a/README b/README
index b827cb6..14df2e1 100644
--- a/README
+++ b/README
@@ -128,6 +128,19 @@ With ``load_tests``::
... result.addTests(generate_scenarios(standard_tests))
... return result
+as a convenience, this is available in ``load_tests_apply_scenarios``, so a
+module using scenario tests need only say ::
+
+ from testscenarios import load_tests_apply_scenarios
+
+ load_tests = load_tests_apply_scenarios
+
+It's suggested for clarity this be done near the top of the file.
+
+Python 2.7 and greater support a different calling convention for `load_tests``
+<https://bugs.launchpad.net/bzr/+bug/607412>. `load_tests_apply_scenarios`
+copes with both.
+
With ``test_suite``::
>>> def test_suite():