Message48631
The TestProgram class will find all tests in the file
based on whether or not they are subclassed from
TestCase. It is not possible to prevent TestProgram
from including tests, such as base classes.
For example, have BaseTest(unittest.TestCase) class
that implements several test functions. However, these
test functions can not operate correctly on their
own...the class must be subclassed for proper operation
(such as TestBlah(BaseTest)).
This patch changes the "auto find" feature to ignore any
classes that start with an underscore, allowing you to
define base classes in the same file, but not have their
tests run.
|
|
Date |
User |
Action |
Args |
2007-08-23 15:43:36 | admin | link | issue1244929 messages |
2007-08-23 15:43:36 | admin | create | |
|