(self)
| 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): |
nothing calls this directly
no test coverage detected