(self)
| 30 | self.assertIsNotNone(client._credentials) |
| 31 | |
| 32 | def test_annonymous_client(self): |
| 33 | env = EnvironmentVarGuard() |
| 34 | env.set('KAGGLE_USER_SECRETS_TOKEN', 'foobar') |
| 35 | env.set('KAGGLE_KERNEL_INTEGRATIONS', 'GCS') |
| 36 | with env: |
| 37 | init_gcs() |
| 38 | anonymous = storage.Client.create_anonymous_client() |
| 39 | self.assertIsNotNone(anonymous) |
| 40 | |
| 41 | def test_default_credentials_gcs_enabled(self): |
| 42 | env = EnvironmentVarGuard() |
nothing calls this directly
no test coverage detected