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

Function fake_cli

tests/cli/test_cli_main.py:141–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139
140def test_main_exits_with_error_when_command_raises(monkeypatch, capsys):
141 def fake_cli():
142 raise RuntimeError("boom")
143
144 monkeypatch.setattr(cli_main, "codecarbon", fake_cli)
145

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…