~jayvdb/testscenarios/0.4

« back to all changes in this revision

Viewing changes to lib/testscenarios/tests/__init__.py

  • Committer: Robert Collins
  • Date: 2012-04-04 10:45:22 UTC
  • mfrom: (18.2.1 testcase-mixin)
  • Revision ID: robertc@robertcollins.net-20120404104522-7fho5wxapc2uqmw5
* ``TestWithScenarios`` is now backed by a mixin - WithScenarios - which can be
  mixed into different unittest implementations more cleanly (e.g. unittest2).
  (James Polley, Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    doctest.set_unittest_reportflags(doctest.REPORT_ONLY_FIRST_FAILURE)
41
41
    standard_tests.addTest(
42
42
        doctest.DocFileSuite("../../../README", optionflags=doctest.ELLIPSIS))
43
 
    return standard_tests
 
43
    return loader.suiteClass(testscenarios.generate_scenarios(standard_tests))