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

Method __init__

tests/cli/test_cli_main.py:49–51  ·  view source on GitHub ↗
(self, endpoint_url=None)

Source from the content-addressed store, hash-verified

47
48 class CustomApiClient(FakeApiClient):
49 def __init__(self, endpoint_url=None):
50 call_info["endpoint_url"] = endpoint_url
51 super().__init__(endpoint_url=endpoint_url)
52
53 runner = CliRunner()
54 monkeypatch.setattr(cli_main, "ApiClient", CustomApiClient)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected