(self)
| 72 | msg="Fake server did not receive the right body from UserSessionClient.") |
| 73 | |
| 74 | def test_no_token_fails(self): |
| 75 | env = EnvironmentVarGuard() |
| 76 | env.unset(_KAGGLE_USER_SECRETS_TOKEN_ENV_VAR_NAME) |
| 77 | with env: |
| 78 | with self.assertRaises(CredentialError): |
| 79 | client = UserSessionClient() |
| 80 | |
| 81 | def test_get_exportable_ipynb_succeeds(self): |
| 82 | source = "import foo" |
nothing calls this directly
no test coverage detected