MCPcopy
hub / github.com/celery/celery / test_invalid_ttl

Method test_invalid_ttl

t/unit/backends/test_gcs.py:59–65  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 assert b.firestore_project == 'project2'
58
59 def test_invalid_ttl(self):
60 self.app.conf.gcs_bucket = 'bucket'
61 self.app.conf.gcs_project = 'project'
62 self.app.conf.gcs_ttl = -1
63
64 with pytest.raises(ImproperlyConfigured, match='Invalid ttl'):
65 GCSBackend(app=self.app)
66
67 @patch.object(GCSBackend, '_is_firestore_ttl_policy_enabled')
68 def test_firestore_ttl_policy_disabled(self, mock_firestore_ttl):

Callers

nothing calls this directly

Calls 2

GCSBackendClass · 0.90
raisesMethod · 0.45

Tested by

no test coverage detected