Merge lp:~julian+/testscenarios/testscenarios into lp:~testtools-committers/testscenarios/trunk
Proposed by
Julian Berman
Status: | Needs review |
---|---|
Proposed branch: | lp:~julian+/testscenarios/testscenarios |
Merge into: | lp:~testtools-committers/testscenarios/trunk |
Diff against target: |
199 lines (+118/-2) 5 files modified
lib/testscenarios/__init__.py (+2/-0) lib/testscenarios/scenarios.py (+52/-0) lib/testscenarios/tests/test_scenarios.py (+61/-0) lib/testscenarios/tests/test_testcase.py (+1/-1) setup.py (+2/-1) |
To merge this branch: | bzr merge lp:~julian+/testscenarios/testscenarios |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
John Vandenberg (community) | Needs Fixing | ||
testtools committers | Pending | ||
Review via email: mp+182255@code.launchpad.net |
Description of the change
Add with_scenarios, a (class) decorator to create individual test methods out of test scenarios.
To post a comment you must log in.
Unmerged revisions
- 24. By Julian Berman <email address hidden>
-
Use dir directly to avoid inspect.getmembers issues on python2.6
- 23. By Julian Berman <email address hidden>
-
Use setuptools and declare the testtools dependency.
- 22. By Julian Berman <email address hidden>
-
Add with_scenarios, generating test methods for each scenario.
the setup.py patch means this doesnt merge nicely on top of the latest released version 4.0.
I initially used @with_scenarios on a TestCase that subclassed TestWithScenarios, which works but causes all tests to be done many times. It would be good to cause an error when cls is a subclass of TestWithScenarios.