本文整理汇总了Python中avocado.result.TestResult.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python TestResult.__init__方法的具体用法?Python TestResult.__init__怎么用?Python TestResult.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类avocado.result.TestResult
的用法示例。
在下文中一共展示了TestResult.__init__方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from avocado.result import TestResult [as 别名]
# 或者: from avocado.result.TestResult import __init__ [as 别名]
def __init__(self, stream=None, args=None):
"""
Creates an instance of TestResultJournal.
:param stream: an instance of :class:`avocado.core.output.View`.
:param args: an instance of :class:`argparse.Namespace`.
"""
TestResult.__init__(self, stream, args)
self.journal_initialized = False
示例2: __init__
# 需要导入模块: from avocado.result import TestResult [as 别名]
# 或者: from avocado.result.TestResult import __init__ [as 别名]
def __init__(self, stream, args):
"""
Creates an instance of VMTestResult.
:param stream: an instance of :class:`avocado.core.output.OutputManager`.
:param args: an instance of :class:`argparse.Namespace`.
"""
TestResult.__init__(self, stream, args)
self.test_dir = data_dir.get_test_dir()
self.remote_test_dir = '~/avocado/tests'
示例3: __init__
# 需要导入模块: from avocado.result import TestResult [as 别名]
# 或者: from avocado.result.TestResult import __init__ [as 别名]
def __init__(self, stream=None, args=None):
"""
Creates an instance of xUnitTestResult.
:param stream: an instance of :class:`avocado.core.output.OutputManager`.
:param args: an instance of :class:`argparse.Namespace`.
"""
TestResult.__init__(self, stream, args)
self.filename = getattr(self.args, 'xunit_output', '-')
self.xml = XmlResult()
示例4: __init__
# 需要导入模块: from avocado.result import TestResult [as 别名]
# 或者: from avocado.result.TestResult import __init__ [as 别名]
def __init__(self, stream, args):
"""
Creates an instance of VMTestResult.
:param stream: an instance of :class:`avocado.core.output.View`.
:param args: an instance of :class:`argparse.Namespace`.
"""
TestResult.__init__(self, stream, args)
self.test_dir = os.getcwd()
self.remote_test_dir = '~/avocado/tests'
self.output = '-'
示例5: __init__
# 需要导入模块: from avocado.result import TestResult [as 别名]
# 或者: from avocado.result.TestResult import __init__ [as 别名]
def __init__(self, stream=None, args=None):
TestResult.__init__(self, stream, args)
self.output = getattr(self.args, 'html_output')
self.args = args
self.view = output.View(app_args=args)
self.json = None