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

Function raise_key_error

tests/cli/test_cli_utils.py:41–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39
40def test_get_existing_exp_id_returns_none_on_key_error(monkeypatch):
41 def raise_key_error():
42 raise KeyError("missing")
43
44 monkeypatch.setattr(cli_utils, "get_hierarchical_config", raise_key_error)
45

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…