MCPcopy
hub / github.com/celery/celery / test_mget

Method test_mget

t/unit/backends/test_azureblockblob.py:167–175  ·  view source on GitHub ↗
(self, mock_client, base_path)

Source from the content-addressed store, hash-verified

165
166 @patch(MODULE_TO_MOCK + ".AzureBlockBlobBackend._blob_service_client")
167 def test_mget(self, mock_client, base_path):
168 keys = [b"mykey1", b"mykey2"]
169
170 self.backend.base_path = base_path
171 self.backend.mget(keys)
172
173 mock_client.get_blob_client.assert_has_calls(
174 [call(blob=base_path + key.decode(), container='celery') for key in keys],
175 any_order=True,)
176
177 @patch(MODULE_TO_MOCK + ".AzureBlockBlobBackend._blob_service_client")
178 def test_delete(self, mock_client, base_path):

Callers

nothing calls this directly

Calls 3

callFunction · 0.85
mgetMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected