diff options
author | Martin Pool <mbp@sourcefrog.net> | 2010-10-12 15:05:41 +1100 |
---|---|---|
committer | Martin Pool <mbp@sourcefrog.net> | 2010-10-12 15:05:41 +1100 |
commit | 42e86e335d24e36be364ee7c003d47d0ccfa760b (patch) | |
tree | 70f08ce284d8b5f2750c00def2769572d006e27e /README | |
parent | 553e0a70a190ab8fa81348532fb32b118ea6592f (diff) | |
download | testscenarios-42e86e335d24e36be364ee7c003d47d0ccfa760b.tar.gz |
Add load_tests_apply_scenarios
Diffstat (limited to 'README')
-rw-r--r-- | README | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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(): |