MCPcopy Create free account
hub / github.com/mlco2/codecarbon / test_get_id_token

Method test_get_id_token

tests/cli/test_cli_auth.py:225–227  ·  view source on GitHub ↗
(self, mock_load)

Source from the content-addressed store, hash-verified

223
224 @patch("codecarbon.cli.auth._load_credentials")
225 def test_get_id_token(self, mock_load):
226 mock_load.return_value = {"id_token": "i"}
227 self.assertEqual(auth.get_id_token(), "i")
228
229 @patch("codecarbon.cli.auth._save_credentials")
230 @patch("codecarbon.cli.auth.webbrowser.open")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected