예제 #1
0
    **on_third_event**
        Called when the third kind of event happens.

This class tests the case where inherited events need to be documented 
along with class-specific ones.''')

    test_docstring(
        DocumentedPublisherWithNoEvents,  # (fold)
        '''\
Docstring for the DocumentedPublisherWithNoEvents class.

:events:
    None defined.

This class tests the case where event documentation is requested, but 
there are no events to document.''')

    test_docstring(
        UndocumentedPublisher,  # (fold)
        '''\
Docstring for the UndocumentedPublisher class.

This class tests the case where a event documentation is not generated, 
even though a few events are defined.''')


if __name__ == '__main__':
    testing.title("Testing the sphinx docstring formatter...")
    testing.run()
        work and no weird spaces should be inserted.

    **on_third_event**
        Called when the third kind of event happens.

This class tests the case where inherited events need to be documented 
along with class-specific ones.''')

    test_docstring(DocumentedPublisherWithNoEvents, # (fold)
            '''\
Docstring for the DocumentedPublisherWithNoEvents class.

:events:
    None defined.

This class tests the case where event documentation is requested, but 
there are no events to document.''')

    test_docstring(UndocumentedPublisher, # (fold)
            '''\
Docstring for the UndocumentedPublisher class.

This class tests the case where a event documentation is not generated, 
even though a few events are defined.''')



if __name__ == '__main__':
    testing.title("Testing the sphinx docstring formatter...")
    testing.run()
예제 #3
0
#!/usr/bin/env python3

import testing

import test_event_handling
import test_pretty_docstrings
import test_sphinx_docstrings

if __name__ == '__main__':
    testing.title("Testing the kemepo module...")
    testing.run()