Add basic debugging support for autodoc.

This commit is contained in:
Jonathan Waltman
2013-01-05 08:28:54 -06:00
parent 51fb8b435b
commit 42c90ee178
2 changed files with 26 additions and 8 deletions

View File

@@ -386,10 +386,10 @@ def test_generate():
assert_warns("import for autodocumenting 'foobar'",
'function', 'foobar', more_content=None)
# importing
assert_warns("import/find module 'test_foobar'",
assert_warns("failed to import module 'test_foobar'",
'module', 'test_foobar', more_content=None)
# attributes missing
assert_warns("import/find function 'util.foobar'",
assert_warns("failed to import function 'foobar' from module 'util'",
'function', 'util.foobar', more_content=None)
# test auto and given content mixing