MCPcopy Create free account
hub / github.com/Kaggle/docker-python / test_get_secret_succeeds

Method test_get_secret_succeeds

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

Source from the content-addressed store, hash-verified

90 client = UserSecretsClient()
91
92 def test_get_secret_succeeds(self):
93 secret = '12345'
94
95 def call_get_secret():
96 client = UserSecretsClient()
97 secret_response = client.get_secret("secret_label")
98 self.assertEqual(secret_response, secret)
99 self._test_client(call_get_secret,
100 '/requests/GetUserSecretByLabelRequest', {'Label': "secret_label"},
101 secret=secret)
102
103 def test_get_secret_handles_unsuccessful(self):
104 def call_get_secret():

Callers

nothing calls this directly

Calls 1

_test_clientMethod · 0.95

Tested by

no test coverage detected