(self, mock_firestore_ttl, mock_get, base_path)
| 198 | @patch.object(GCSBackend, 'get') |
| 199 | @patch.object(GCSBackend, '_is_firestore_ttl_policy_enabled') |
| 200 | def test_mget(self, mock_firestore_ttl, mock_get, base_path): |
| 201 | self.app.conf.gcs_base_path = base_path |
| 202 | mock_firestore_ttl.return_value = True |
| 203 | backend = GCSBackend(app=self.app) |
| 204 | mock_get.side_effect = ['value1', 'value2'] |
| 205 | result = backend.mget([b'key1', b'key2']) |
| 206 | mock_get.assert_has_calls( |
| 207 | [call(b'key1'), call(b'key2')], any_order=True |
| 208 | ) |
| 209 | assert sorted(result) == sorted(['value1', 'value2']) |
| 210 | |
| 211 | @patch.object(GCSBackend, 'client') |
| 212 | @patch.object(GCSBackend, '_is_firestore_ttl_policy_enabled') |
nothing calls this directly
no test coverage detected