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

Method test_no_token_fails

tests/test_user_secrets.py:85–90  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

83 msg="Fake server did not receive the right body from the UserSecrets client.")
84
85 def test_no_token_fails(self):
86 env = EnvironmentVarGuard()
87 env.unset(_KAGGLE_USER_SECRETS_TOKEN_ENV_VAR_NAME)
88 with env:
89 with self.assertRaises(CredentialError):
90 client = UserSecretsClient()
91
92 def test_get_secret_succeeds(self):
93 secret = '12345'

Callers

nothing calls this directly

Calls 1

UserSecretsClientClass · 0.90

Tested by

no test coverage detected