Re: Unittest - adding a doctest suite to unittest.main

2008-10-14 Thread Ben Finney
Duncan Booth <[EMAIL PROTECTED]> writes: > Create a function named test_suite which creates a test suite > containing all your tests including the doctests. Pass that to main > as the defaultTest argument. Better to name it ‘suite’, so that its name doesn't match the default search for individual

Re: Unittest - adding a doctest suite to unittest.main

2008-10-14 Thread Paul Moore
On 14 Oct, 16:09, Duncan Booth <[EMAIL PROTECTED]> wrote: > Create a function named test_suite which creates a test suite containing > all your tests including the doctests. Pass that to main as the defaultTest > argument. Ah, thanks. I see now - a suite is itself a test. That makes sense. But ho

Re: Unittest - adding a doctest suite to unittest.main

2008-10-14 Thread Duncan Booth
Paul Moore <[EMAIL PROTECTED]> wrote: > Just before I start diving into the gory details, have I missed a > simple way of adding an additional doctest.DocFileSuite to > unittest.main? Create a function named test_suite which creates a test suite containing all your tests including the doctests.