MCPcopy
hub / github.com/celery/celery / test_firestore_project

Method test_firestore_project

t/unit/backends/test_gcs.py:51–57  ·  view source on GitHub ↗
(self, mock_firestore_ttl)

Source from the content-addressed store, hash-verified

49
50 @patch.object(GCSBackend, '_is_firestore_ttl_policy_enabled')
51 def test_firestore_project(self, mock_firestore_ttl):
52 mock_firestore_ttl.return_value = True
53 b = GCSBackend(app=self.app)
54 assert b.firestore_project == 'project'
55 self.app.conf.firestore_project = 'project2'
56 b = GCSBackend(app=self.app)
57 assert b.firestore_project == 'project2'
58
59 def test_invalid_ttl(self):
60 self.app.conf.gcs_bucket = 'bucket'

Callers

nothing calls this directly

Calls 1

GCSBackendClass · 0.90

Tested by

no test coverage detected