MCPcopy Index your code
hub / github.com/Kaggle/docker-python / test_annonymous_client

Method test_annonymous_client

tests/test_gcs.py:32–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 1

init_gcsFunction · 0.90

Tested by

no test coverage detected