| 5 | |
| 6 | |
| 7 | class 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]) |
nothing calls this directly
no outgoing calls
no test coverage detected