本文整理汇总了Python中nose.plugins.Plugin.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Plugin.__init__方法的具体用法?Python Plugin.__init__怎么用?Python Plugin.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类nose.plugins.Plugin
的用法示例。
在下文中一共展示了Plugin.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from nose.plugins import Plugin [as 别名]
# 或者: from nose.plugins.Plugin import __init__ [as 别名]
def __init__(self):
Plugin.__init__(self)
import uuid
self.ds_name = "queueblame-%s" % str(uuid.uuid4())[0:6]
from collections import defaultdict
self.queues_by_test = defaultdict(lambda: defaultdict(dict))
示例2: __init__
# 需要导入模块: from nose.plugins import Plugin [as 别名]
# 或者: from nose.plugins.Plugin import __init__ [as 别名]
def __init__(self):
Plugin.__init__(self)
self.ccs = []
self.container_started = False
self.blames = {"scidata": [], "state": [], "directory": [], "events": [], "resources": [], "objects": []}
self.last_blame = {}
self.sysname = None
示例3: __init__
# 需要导入模块: from nose.plugins import Plugin [as 别名]
# 或者: from nose.plugins.Plugin import __init__ [as 别名]
def __init__(self):
Plugin.__init__(self)
self.stream_capturer = StreamCapturer()
self.destination = os.environ.get('IPTEST_SUBPROC_STREAMS', 'capture')
# This is ugly, but distant parts of the test machinery need to be able
# to redirect streams, so we make the object globally accessible.
nose.iptest_stdstreams_fileno = self.get_write_fileno
示例4: __init__
# 需要导入模块: from nose.plugins import Plugin [as 别名]
# 或者: from nose.plugins.Plugin import __init__ [as 别名]
def __init__(self):
Plugin.__init__(self)
self.ccs = []
self.container_started = False
self.blames = {'scidata':[], 'state':[], 'directory':[], 'events':[],
'resources':[], 'objects':[]}
self.last_blame = {}
self.sysname = None
示例5: __init__
# 需要导入模块: from nose.plugins import Plugin [as 别名]
# 或者: from nose.plugins.Plugin import __init__ [as 别名]
def __init__(self):
Plugin.__init__(self)
self.execution_guid = str(uuid.uuid4())
self.testcase_guid = None
self.execution_start_time = 0
self.case_start_time = 0
self.application = None
self.testcase_manager = None
self.error_handled = False
示例6: __init__
# 需要导入模块: from nose.plugins import Plugin [as 别名]
# 或者: from nose.plugins.Plugin import __init__ [as 别名]
def __init__(self):
Plugin.__init__(self)
self.nose_config = None
self.django_plugins = []
self._loaded_test_fixtures = []
self._num_fixture_loads = 0
self._num_flush_calls = 0
self._num_syncdb_calls = 0
示例7: __init__
# 需要导入模块: from nose.plugins import Plugin [as 别名]
# 或者: from nose.plugins.Plugin import __init__ [as 别名]
def __init__(self):
"""initialize some variables"""
Plugin.__init__(self)
self.testcase_guid = None
self.execution_start_time = 0
self.case_start_time = 0
self.application = None
self.testcase_manager = None
self.error_handled = False
示例8: __init__
# 需要导入模块: from nose.plugins import Plugin [as 别名]
# 或者: from nose.plugins.Plugin import __init__ [as 别名]
def __init__(self):
Plugin.__init__(self)
self.server_started = False
self.server_thread = None
示例9: __init__
# 需要导入模块: from nose.plugins import Plugin [as 别名]
# 或者: from nose.plugins.Plugin import __init__ [as 别名]
def __init__(self, alternative_stream=None):
Plugin.__init__(self)
#==
self.alternative_stream = alternative_stream
示例10: __init__
# 需要导入模块: from nose.plugins import Plugin [as 别名]
# 或者: from nose.plugins.Plugin import __init__ [as 别名]
def __init__(self):
"""Constructor"""
Plugin.__init__(self)
self.results = []
示例11: __init__
# 需要导入模块: from nose.plugins import Plugin [as 别名]
# 或者: from nose.plugins.Plugin import __init__ [as 别名]
def __init__(self):
Plugin.__init__(self)
self.nose_config = None
self.django_plugins = []
示例12: __init__
# 需要导入模块: from nose.plugins import Plugin [as 别名]
# 或者: from nose.plugins.Plugin import __init__ [as 别名]
def __init__(self):
Plugin.__init__(self)
self.stream_capturer = StreamCapturer()
# This is ugly, but distant parts of the test machinery need to be able
# to redirect streams, so we make the object globally accessible.
nose.ipy_stream_capturer = self.stream_capturer
示例13: __init__
# 需要导入模块: from nose.plugins import Plugin [as 别名]
# 或者: from nose.plugins.Plugin import __init__ [as 别名]
def __init__(self):
Plugin.__init__(self)
self.current_module = None
示例14: __init__
# 需要导入模块: from nose.plugins import Plugin [as 别名]
# 或者: from nose.plugins.Plugin import __init__ [as 别名]
def __init__(self):
"""Constructor"""
Plugin.__init__(self)
self.current_module = None
示例15: __init__
# 需要导入模块: from nose.plugins import Plugin [as 别名]
# 或者: from nose.plugins.Plugin import __init__ [as 别名]
def __init__(self, tzope):
Plugin.__init__(self)
self.tzope = tzope
self.naaya_started = False