当前位置: 首页>>代码示例>>Python>>正文


Python Plugin.__init__方法代码示例

本文整理汇总了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))
开发者ID:swarbhanu,项目名称:pyon,代码行数:9,代码来源:queueblame_plugin.py

示例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
开发者ID:rumineykova,项目名称:pyon,代码行数:9,代码来源:pycc_plugin.py

示例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
开发者ID:Cadair,项目名称:ipython,代码行数:9,代码来源:iptest.py

示例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
开发者ID:jamie-cyber1,项目名称:pyon,代码行数:10,代码来源:pycc_plugin.py

示例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
开发者ID:VegiS,项目名称:SeleniumBase,代码行数:11,代码来源:db_reporting_plugin.py

示例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
开发者ID:WoLpH,项目名称:nosedjango,代码行数:11,代码来源:nosedjango.py

示例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
开发者ID:dougdragon,项目名称:HotSalad,代码行数:12,代码来源:db_reporting_plugin.py

示例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
开发者ID:akaihola,项目名称:django-sane-testing,代码行数:6,代码来源:noseplugins.py

示例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
开发者ID:geographika,项目名称:nose-html-report,代码行数:6,代码来源:nosehtml.py

示例10: __init__

# 需要导入模块: from nose.plugins import Plugin [as 别名]
# 或者: from nose.plugins.Plugin import __init__ [as 别名]
 def __init__(self):
     """Constructor"""
     Plugin.__init__(self)
     self.results = []        
开发者ID:justttry,项目名称:python_testing_cookbook,代码行数:6,代码来源:recipe14_plugin.py

示例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 = []
开发者ID:jlward,项目名称:nosedjango,代码行数:6,代码来源:nosedjango.py

示例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
开发者ID:Gwillink,项目名称:ipython,代码行数:8,代码来源:iptest.py

示例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
开发者ID:almacro,项目名称:snippets,代码行数:5,代码来源:recipe26_plugin.py

示例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
开发者ID:justttry,项目名称:python_testing_cookbook,代码行数:6,代码来源:recipe26_plugin.py

示例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
开发者ID:mihaimaruseac,项目名称:naaya-nose-selenium,代码行数:6,代码来源:SeleniumTestCase.py


注:本文中的nose.plugins.Plugin.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。