mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add a test suite for autodoc.
This commit is contained in:
@@ -24,7 +24,7 @@ from nose import tools
|
||||
|
||||
__all__ = [
|
||||
'test_root',
|
||||
'raises', 'raises_msg',
|
||||
'raises', 'raises_msg', 'Struct',
|
||||
'ListOutput', 'TestApp', 'with_testapp',
|
||||
'path', 'with_tempdir', 'write_file',
|
||||
'sprint',
|
||||
@@ -66,6 +66,11 @@ def raises_msg(exc, msg, func, *args, **kwds):
|
||||
(func.__name__, _excstr(exc)))
|
||||
|
||||
|
||||
class Struct(object):
|
||||
def __init__(self, **kwds):
|
||||
self.__dict__.update(kwds)
|
||||
|
||||
|
||||
class ListOutput(object):
|
||||
"""
|
||||
File-like object that collects written text in a list.
|
||||
|
||||
Reference in New Issue
Block a user