本文整理汇总了Python中socorro.lib.util.DotDict.transaction_executor_class方法的典型用法代码示例。如果您正苦于以下问题:Python DotDict.transaction_executor_class方法的具体用法?Python DotDict.transaction_executor_class怎么用?Python DotDict.transaction_executor_class使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类socorro.lib.util.DotDict
的用法示例。
在下文中一共展示了DotDict.transaction_executor_class方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _setup_config
# 需要导入模块: from socorro.lib.util import DotDict [as 别名]
# 或者: from socorro.lib.util.DotDict import transaction_executor_class [as 别名]
def _setup_config(self):
config = DotDict();
config.rabbitmq_class = Mock()
config.transaction_executor_class = Mock()
config.logger = Mock()
config.routing_key = 'socorro.normal'
config.filter_on_legacy_processing = True
return config
示例2: _setup_config
# 需要导入模块: from socorro.lib.util import DotDict [as 别名]
# 或者: from socorro.lib.util.DotDict import transaction_executor_class [as 别名]
def _setup_config(self):
config = DotDict()
config.transaction_executor_class = Mock()
config.logger = Mock()
config.rabbitmq_class = MagicMock()
config.routing_key = 'socorro.normal'
config.filter_on_legacy_processing = True
config.redactor_class = Redactor
config.forbidden_keys = Redactor.required_config.forbidden_keys.default
return config
示例3: _setup_config
# 需要导入模块: from socorro.lib.util import DotDict [as 别名]
# 或者: from socorro.lib.util.DotDict import transaction_executor_class [as 别名]
def _setup_config(self):
config = DotDict()
config.transaction_executor_class = Mock()
config.backoff_delays = (0, 0, 0)
config.logger = Mock()
config.rabbitmq_class = MagicMock()
config.routing_key = "socorro.normal"
config.filter_on_legacy_processing = True
config.redactor_class = Redactor
config.forbidden_keys = Redactor.required_config.forbidden_keys.default
config.throttle = 100
return config
示例4: _setup_config
# 需要导入模块: from socorro.lib.util import DotDict [as 别名]
# 或者: from socorro.lib.util.DotDict import transaction_executor_class [as 别名]
def _setup_config(self):
config = DotDict();
config.rabbitmq_class = Mock()
config.transaction_executor_class = Mock()
config.logger = Mock()
return config