本文整理汇总了Python中util.TestApp.connect方法的典型用法代码示例。如果您正苦于以下问题:Python TestApp.connect方法的具体用法?Python TestApp.connect怎么用?Python TestApp.connect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类util.TestApp
的用法示例。
在下文中一共展示了TestApp.connect方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setup_module
# 需要导入模块: from util import TestApp [as 别名]
# 或者: from util.TestApp import connect [as 别名]
def setup_module():
global app
app = TestApp()
app.builder.env.app = app
app.builder.env.temp_data['docname'] = 'dummy'
app.connect('autodoc-process-docstring', process_docstring)
app.connect('autodoc-process-signature', process_signature)
app.connect('autodoc-skip-member', skip_member)
示例2: setup_module
# 需要导入模块: from util import TestApp [as 别名]
# 或者: from util.TestApp import connect [as 别名]
def setup_module():
global app, original, original_uids
app = TestApp()
app.builder.env.app = app
app.connect('doctree-resolved', on_doctree_resolved)
app.build()
original = doctrees['versioning/original']
original_uids = [n.uid for n in add_uids(original, is_paragraph)]
示例3: setup_module
# 需要导入模块: from util import TestApp [as 别名]
# 或者: from util.TestApp import connect [as 别名]
def setup_module():
global app, original, original_uids
app = TestApp(testroot="versioning")
app.builder.env.app = app
app.connect("doctree-resolved", on_doctree_resolved)
app.build()
original = doctrees["original"]
original_uids = [n.uid for n in add_uids(original, is_paragraph)]