コード例 #1
0
        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
コード例 #2
0
 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
コード例 #3
0
 def get_context(self, *args, **kwargs):
     context = super(MixedStorageFromConfTestCase,
                     self).get_context(*args, **kwargs)
     self.storage = MixedStorage(context)
     return context
コード例 #4
0
 def get_context(self):
     context = super().get_context()
     self.storage = MixedStorage(None, *self.get_storages())
     return context
コード例 #5
0
 def get_context(self):
     context = super().get_context()
     self.storage = MixedStorage(context)
     return context
コード例 #6
0
        def topic(self, storages):
            context = get_context()
            file_storage, crypto_storage, detector_storage = storages
            storage = MixedStorage(context)

            return storage
コード例 #7
0
 def get_context(self):
     context = super(BasedMixedStorageTestCase, self).get_context()
     self.storage = MixedStorage(None, *self.get_storages())
     return context
コード例 #8
0
 def get_context(self):
     context = super(MixedStorageFromConfTestCase, self).get_context()
     self.storage = MixedStorage(context)
     return context