Hi,

I have been using the documentation coverage extension. The modules I
want to test for documentation use some django modules (e.g. from
django.conf import settings), and the django stuff isn't documented.
The Documentation Coverage tool finds these and lists them as 'missing
methods' in my various classes and modules.

Having looked at the code (coverage.py) I thought the last test of the
following was supposed to take care of this:

            for name, obj in inspect.getmembers(mod):
                # diverse module attributes are ignored:
                if name[0] == '_':
                    # begins in an underscore
                    continue
                if not hasattr(obj, '__module__'):
                    # cannot be attributed to a module
                    continue
                if obj.__module__ != mod_name:
                    # is not defined in this module
                    continue

Alternately, trying to include the django modules in the
coverage_ignore_modules argument seems like an inefficient method, as
I would have to go through, find and list all the modules being used.

If there is a test I could include or something I'm missing, please
tell me. I'm fairly new at this.

Thanks for your help :)

--

You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.


Reply via email to