def topic(self, storages): file_storage, crypto_storage, detector_storage = storages storage = MixedStorage(None, file_storage, crypto_storage, detector_storage) storage.put('path1', 'contents') storage.put_crypto('path1') return storage
def get_context(self, *args, **kwargs): context = super(BaseMidexStorageTestCase, self).get_context(*args, **kwargs) self.storage = MixedStorage(None, *self.get_storages()) self.storage.put('path1', 'contents') self.storage.put_crypto('path1') self.storage.put_detector_data('path1', 'detector') return context
def get_context(self, *args, **kwargs): context = super(MixedStorageFromConfTestCase, self).get_context(*args, **kwargs) self.storage = MixedStorage(context) return context
def get_context(self): context = super().get_context() self.storage = MixedStorage(None, *self.get_storages()) return context
def get_context(self): context = super().get_context() self.storage = MixedStorage(context) return context
def topic(self, storages): context = get_context() file_storage, crypto_storage, detector_storage = storages storage = MixedStorage(context) return storage
def get_context(self): context = super(BasedMixedStorageTestCase, self).get_context() self.storage = MixedStorage(None, *self.get_storages()) return context
def get_context(self): context = super(MixedStorageFromConfTestCase, self).get_context() self.storage = MixedStorage(context) return context