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

Class TestKagglehub

tests/test_kagglehub.py:7–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6
7class TestKagglehub(unittest.TestCase):
8 def test_login(self):
9 with self.assertLogs('kagglehub', level='INFO') as l:
10 with mock.patch("builtins.input") as mock_input:
11 with mock.patch("getpass.getpass") as mock_getpass:
12 mock_input.side_effect = ["lastplacelarry"]
13 mock_getpass.return_value = "some-key"
14
15 kagglehub.login(validate_credentials=False)
16
17 self.assertIn("credentials set", l.output[0])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected