~testdoc-dev/testdoc/trunk.git

« back to all changes in this revision

Viewing changes to testdoc/finder.py

  • Committer: Jonathan Lange
  • Date: 2010-09-08 11:42:24 UTC
  • mfrom: (14.1.10)
  • Revision ID: git-v1:f0940e6c8fd4eecfe0d9de582f5daa0eaf6c695f
More formatters!

 * REST, Moin and Shiny formatters
 * Bug 120141 is fixed, testdoc no longer generates documentation for 
   imported tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
    finder.got_module(module)
14
14
    classes = sorted(reflect.findTestClasses(module), key=get_lineno)
15
15
    for testCaseClass in classes:
 
16
        if testCaseClass.__module__ != module.__name__:
 
17
            continue
16
18
        finder.got_test_class(testCaseClass)
17
19
        methods = [getattr(testCaseClass, 'test%s' % name)
18
20
                   for name in reflect.getTestCaseNames(testCaseClass)]