def get_standard_config(self): config = DotDict() config.logger = mock.MagicMock() config.collector_class = GenericCollector config.type_tag = 'XXX-' config.accept_submitted_crash_id = False config.checksum_method = mock.Mock() config.checksum_method.return_value.hexdigest.return_value = 'a_hash' config.crash_storage = mock.MagicMock() return config
def get_standard_config(self): config = DotDict() config.logger = mock.MagicMock() config.collector_class = GenericCollector config.type_tag = 'XXX-' config.accept_submitted_crash_id = False config.checksum_method = mock.Mock() config.checksum_method.return_value.hexdigest.return_value = 'a_hash' config.storage = DotDict() config.storage.crashstorage_class = mock.MagicMock() return config
def get_standard_config(self): config = DotDict() config.logger = mock.MagicMock() config.throttler = mock.MagicMock() config.collector_class = BreakpadCollector2015 config.dump_id_prefix = 'bp-' config.dump_field = 'dump' config.accept_submitted_crash_id = False config.accept_submitted_legacy_processing = False config.checksum_method = hashlib.md5 config.storage = DotDict() config.storage.crashstorage_class = mock.MagicMock() config.throttler = DotDict() config.throttler.throttler_class = mock.MagicMock() return config